From e24661aba7aa0ab7fa6476259560257a6d0d2c40 Mon Sep 17 00:00:00 2001 From: Marius Tobiassen Bungum Date: Mon, 4 Nov 2024 15:02:24 +0100 Subject: [PATCH] :wastebasket: Mark FullPageStatus as deprecated --- .../FullPageStatus/FullPageStatus.stories.tsx | 2 +- .../FullPageStatus/FullPageStatus.test.tsx | 2 +- .../FullPageStatus/FullPageStatus.tsx | 3 +++ src/deprecated/index.ts | 1 + src/organisms/index.ts | 1 - 5 files changed, 6 insertions(+), 3 deletions(-) rename src/{organisms => deprecated}/FullPageStatus/FullPageStatus.stories.tsx (92%) rename src/{organisms => deprecated}/FullPageStatus/FullPageStatus.test.tsx (90%) rename src/{organisms => deprecated}/FullPageStatus/FullPageStatus.tsx (93%) diff --git a/src/organisms/FullPageStatus/FullPageStatus.stories.tsx b/src/deprecated/FullPageStatus/FullPageStatus.stories.tsx similarity index 92% rename from src/organisms/FullPageStatus/FullPageStatus.stories.tsx rename to src/deprecated/FullPageStatus/FullPageStatus.stories.tsx index 0e5388b3c..424044df9 100644 --- a/src/organisms/FullPageStatus/FullPageStatus.stories.tsx +++ b/src/deprecated/FullPageStatus/FullPageStatus.stories.tsx @@ -3,7 +3,7 @@ import { Meta, StoryFn } from '@storybook/react'; import { FullPageStatus, FullPageStatusProps, -} from 'src/organisms/FullPageStatus/FullPageStatus'; +} from 'src/deprecated/FullPageStatus/FullPageStatus'; const meta: Meta = { title: 'Organisms/FullPageStatus', diff --git a/src/organisms/FullPageStatus/FullPageStatus.test.tsx b/src/deprecated/FullPageStatus/FullPageStatus.test.tsx similarity index 90% rename from src/organisms/FullPageStatus/FullPageStatus.test.tsx rename to src/deprecated/FullPageStatus/FullPageStatus.test.tsx index 74a362907..b69636691 100644 --- a/src/organisms/FullPageStatus/FullPageStatus.test.tsx +++ b/src/deprecated/FullPageStatus/FullPageStatus.test.tsx @@ -1,7 +1,7 @@ import { warning_filled } from '@equinor/eds-icons'; import { faker } from '@faker-js/faker'; -import { FullPageStatus } from './FullPageStatus'; +import { FullPageStatus } from 'src/deprecated/FullPageStatus/FullPageStatus'; import { render, screen } from 'src/tests/test-utils'; test('Shows circular progress when isLoading === true', () => { diff --git a/src/organisms/FullPageStatus/FullPageStatus.tsx b/src/deprecated/FullPageStatus/FullPageStatus.tsx similarity index 93% rename from src/organisms/FullPageStatus/FullPageStatus.tsx rename to src/deprecated/FullPageStatus/FullPageStatus.tsx index 1773235ce..47126d52a 100644 --- a/src/organisms/FullPageStatus/FullPageStatus.tsx +++ b/src/deprecated/FullPageStatus/FullPageStatus.tsx @@ -39,6 +39,9 @@ const CircularProgress = styled(Progress.Circular)` } `; +/** + * @deprecated This component will be replaced by the Status component in a future update + */ export const FullPageStatus: FC = ({ loading, error, diff --git a/src/deprecated/index.ts b/src/deprecated/index.ts index b2ac99b52..3647aa66a 100644 --- a/src/deprecated/index.ts +++ b/src/deprecated/index.ts @@ -28,3 +28,4 @@ export { default as SingleSelectDrawer } from './SingleSelectDrawer'; export { default as IconToggleButton } from './IconToggleButton'; export { default as Tutorial } from './Tutorial/Tutorial'; export { HighlightBlocks } from './Tutorial/HighlightBlocks/HighlightBlocks'; +export { FullPageStatus } from './FullPageStatus/FullPageStatus'; diff --git a/src/organisms/index.ts b/src/organisms/index.ts index e5545c5d9..438459cd9 100644 --- a/src/organisms/index.ts +++ b/src/organisms/index.ts @@ -9,7 +9,6 @@ export type { ItemType } from './SideBar'; export { TopBar } from './TopBar'; export type { GuidelineSections } from './TopBar/Guidelines/Guidelines'; export type { SettingsSection } from './TopBar/Settings.types'; -export { FullPageStatus } from './FullPageStatus/FullPageStatus'; export { ErrorPage } from './ErrorPage'; export { GlitchAnimation } from './ErrorPage/illustrations/GlitchAnimation'; export { QuestioningAnimation } from './ErrorPage/illustrations/QuestioningAnimation';