fix(web): fix typo + refactor empty state messages (#583)

* fix(web): fix typo + refactor empty state messages

* fix(web): refactor default empty-state message
This commit is contained in:
Shivam Bhatnagar
2023-10-27 15:35:10 +05:30
committed by GitHub
parent f05cc2e652
commit 7ee9cb3f93

View File

@ -14,13 +14,13 @@ export const EmptyDocumentState = ({ status }: EmptyDocumentProps) => {
.with(ExtendedDocumentStatus.COMPLETED, () => ({ .with(ExtendedDocumentStatus.COMPLETED, () => ({
title: 'Nothing to do', title: 'Nothing to do',
message: message:
'There are no completed documents yet. Documents that you have created or received that become completed will appear here later.', 'There are no completed documents yet. Documents that you have created or received will appear here once completed.',
icon: CheckCircle2, icon: CheckCircle2,
})) }))
.with(ExtendedDocumentStatus.DRAFT, () => ({ .with(ExtendedDocumentStatus.DRAFT, () => ({
title: 'No active drafts', title: 'No active drafts',
message: message:
'There are no active drafts at then current moment. You can upload a document to start drafting.', 'There are no active drafts at the current moment. You can upload a document to start drafting.',
icon: CheckCircle2, icon: CheckCircle2,
})) }))
.with(ExtendedDocumentStatus.ALL, () => ({ .with(ExtendedDocumentStatus.ALL, () => ({
@ -32,7 +32,7 @@ export const EmptyDocumentState = ({ status }: EmptyDocumentProps) => {
.otherwise(() => ({ .otherwise(() => ({
title: 'Nothing to do', title: 'Nothing to do',
message: message:
'All documents are currently actioned. Any new documents are sent or recieved they will start to appear here.', 'All documents have been processed. Any new documents that are sent or received will show here.',
icon: CheckCircle2, icon: CheckCircle2,
})); }));