refactor: update EmptyStateLayout to conform to it's new props

pull/126/head
Boaz Poolman 2024-05-08 15:58:30 +02:00
parent dfb5522024
commit ae6402803a
2 changed files with 5 additions and 10 deletions

View File

@ -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>
);

View File

@ -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} />}
/>
);
};