✏️(frontend) remove key from Trans component

We remove the key from the Trans componant
to make it easier to translate.
This commit is contained in:
Anthony LC
2025-07-09 10:54:47 +02:00
parent 377d4e8971
commit d15285d385

View File

@@ -98,14 +98,12 @@ export const ModalRemoveDoc = ({
className="--docs--modal-remove-doc" className="--docs--modal-remove-doc"
> >
{!isError && ( {!isError && (
<> <Text $size="sm" $variation="600" $display="inline-block">
<Text $size="sm" $variation="600" $display="inline-block"> <Trans t={t}>
<Trans t={t} i18nKey="modal-remove-doc"> This document and <strong>any sub-documents</strong> will be
This document and <strong>any sub-documents</strong> will be permanently deleted. This action is irreversible.
permanently deleted. This action is irreversible. </Trans>
</Trans> </Text>
</Text>
</>
)} )}
{isError && <TextErrors causes={error.cause} />} {isError && <TextErrors causes={error.cause} />}