catalog-react: remove deprecated favorite column helpers

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-14 12:31:55 +01:00
parent 09a711d51b
commit f7fb7295e6
4 changed files with 6 additions and 27 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': minor
---
**BREAKING**: Removed the deprecated `favoriteEntityTooltip` and `favoriteEntityIcon` functions.
-8
View File
@@ -388,19 +388,11 @@ export interface EntityTypePickerProps {
// @public
export const FavoriteEntity: (props: FavoriteEntityProps) => JSX.Element;
// @public @deprecated (undocumented)
export const favoriteEntityIcon: (isStarred: boolean) => JSX.Element;
// @public (undocumented)
export type FavoriteEntityProps = ComponentProps<typeof IconButton> & {
entity: Entity;
};
// @public @deprecated (undocumented)
export const favoriteEntityTooltip: (
isStarred: boolean,
) => 'Remove from favorites' | 'Add to favorites';
// @public @deprecated (undocumented)
export const formatEntityRefTitle: typeof humanizeEntityRef;
@@ -32,20 +32,6 @@ const YellowStar = withStyles({
},
})(Star);
/**
* @public
* @deprecated due to low utility value.
*/
export const favoriteEntityTooltip = (isStarred: boolean) =>
isStarred ? 'Remove from favorites' : 'Add to favorites';
/**
* @public
* @deprecated due to low utility value.
*/
export const favoriteEntityIcon = (isStarred: boolean) =>
isStarred ? <YellowStar /> : <StarBorder />;
/**
* IconButton for showing if a current entity is starred and adding/removing it from the favorite entities
* @param props - MaterialUI IconButton props extended by required `entity` prop
@@ -14,9 +14,5 @@
* limitations under the License.
*/
export {
favoriteEntityTooltip,
favoriteEntityIcon,
FavoriteEntity,
} from './FavoriteEntity';
export { FavoriteEntity } from './FavoriteEntity';
export type { FavoriteEntityProps } from './FavoriteEntity';