Skip to content

Commit

Permalink
Merge pull request #856 from equinor/chore/deprecate-fullpagestatus
Browse files Browse the repository at this point in the history
  • Loading branch information
mariush2 authored Nov 5, 2024
2 parents 2590bd9 + e24661a commit 96253d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof FullPageStatus> = {
title: 'Organisms/FullPageStatus',
Expand Down
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<FullPageStatusProps> = ({
loading,
error,
Expand Down
1 change: 1 addition & 0 deletions src/deprecated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
1 change: 0 additions & 1 deletion src/organisms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 96253d2

Please sign in to comment.