Skip to content

Commit

Permalink
refactor: update EmptyStateLayout to conform to it's new props
Browse files Browse the repository at this point in the history
  • Loading branch information
boazpoolman committed May 8, 2024
1 parent dfb5522 commit ae64028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 2 additions & 5 deletions admin/src/components/FirstExport/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ const FirstExport = () => {
onSubmit={() => dispatch(exportAllConfig([], toggleNotification))}
/>
<EmptyStateLayout
content={{
id: 'emptyState',
defaultMessage:
formatMessage({ id: 'config-sync.FirstExport.Message' }),
}}
content={formatMessage({ id: 'config-sync.FirstExport.Message' })}
action={<Button onClick={() => setModalIsOpen(true)}>{formatMessage({ id: 'config-sync.FirstExport.Button' })}</Button>}
icon={<EmptyDocuments width={160} />}
/>
</div>
);
Expand Down
8 changes: 3 additions & 5 deletions admin/src/components/NoChanges/index.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import React from 'react';
import { EmptyStateLayout } from '@strapi/design-system';
import { useIntl } from 'react-intl';
import { EmptyDocuments } from '@strapi/icons';

const NoChanges = () => {
const { formatMessage } = useIntl();
return (
<EmptyStateLayout
content={{
id: 'emptyState',
defaultMessage:
formatMessage({ id: 'config-sync.NoChanges.Message' }),
}}
content={formatMessage({ id: 'config-sync.NoChanges.Message', defaultMessage: 'No differences between DB and sync directory. You are up-to-date!' })}
icon={<EmptyDocuments width={160} />}
/>
);
};
Expand Down

0 comments on commit ae64028

Please sign in to comment.