Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗑️ Mark FullPageStatus as deprecated #856

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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