Skip to content

Commit b2ef219

Browse files
committed
✏️(frontend) remove key from Trans component
We remove the key from the Trans componant to make it easier to translate.
1 parent 4c14d27 commit b2ef219

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/frontend/apps/impress/src/features/docs/doc-management/components/ModalRemoveDoc.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,12 @@ export const ModalRemoveDoc = ({
9898
className="--docs--modal-remove-doc"
9999
>
100100
{!isError && (
101-
<>
102-
<Text $size="sm" $variation="600" $display="inline-block">
103-
<Trans t={t} i18nKey="modal-remove-doc">
104-
This document and <strong>any sub-documents</strong> will be
105-
permanently deleted. This action is irreversible.
106-
</Trans>
107-
</Text>
108-
</>
101+
<Text $size="sm" $variation="600" $display="inline-block">
102+
<Trans t={t}>
103+
This document and <strong>any sub-documents</strong> will be
104+
permanently deleted. This action is irreversible.
105+
</Trans>
106+
</Text>
109107
)}
110108

111109
{isError && <TextErrors causes={error.cause} />}

0 commit comments

Comments
 (0)