From a4ad1ddcb67abbb07db85aeae6842f51bab8505e Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 4 Feb 2022 19:22:26 +0100 Subject: [PATCH] chore: added deprecation to create button, doesn't belong in core-components Signed-off-by: blam --- .../src/components/CreateButton/CreateButton.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core-components/src/components/CreateButton/CreateButton.tsx b/packages/core-components/src/components/CreateButton/CreateButton.tsx index d5d7080851..056ead5811 100644 --- a/packages/core-components/src/components/CreateButton/CreateButton.tsx +++ b/packages/core-components/src/components/CreateButton/CreateButton.tsx @@ -25,6 +25,7 @@ import AddCircleOutline from '@material-ui/icons/AddCircleOutline'; /** * Properties for {@link CreateButton} * + * @deprecated * @public */ export type CreateButtonProps = { @@ -35,6 +36,9 @@ export type CreateButtonProps = { * Responsive Button giving consistent UX for creation of different things * * @public + * + * @deprecated Please use IconButton directly and have your own implementation of this component. + * It doesn't really fit as a core-component. */ export function CreateButton(props: CreateButtonProps) { const { title, to } = props;