Skip to content

Commit 250eb40

Browse files
committed
pr feedback
1 parent 990de4c commit 250eb40

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/compass-data-modeling/src/components/new-diagram-form.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,9 @@ const NewDiagramForm: React.FunctionComponent<NewDiagramFormProps> = ({
265265
case 'select-collections':
266266
return {
267267
title: `Select collections for ${selectedDatabase ?? ''}`,
268-
description:
269-
'These collections will be included in your generated diagram.',
268+
description: `${
269+
collections.length === 1 ? 'This collection' : 'These collections'
270+
} will be included in your generated diagram.`,
270271
onConfirmAction: onCollectionsSelectionConfirm,
271272
confirmActionLabel: 'Generate',
272273
isConfirmDisabled:
@@ -276,7 +277,9 @@ const NewDiagramForm: React.FunctionComponent<NewDiagramFormProps> = ({
276277
footerText: (
277278
<>
278279
<strong>{selectedCollections.length}</strong>/
279-
<strong>{collections.length}</strong> total collections selected.
280+
<strong>{collections.length}</strong> total{' '}
281+
{collections.length === 1 ? 'collection' : 'collections'}{' '}
282+
selected.
280283
</>
281284
),
282285
};

0 commit comments

Comments
 (0)