Skip to content

Commit

Permalink
Add link if documentationUrl is undefinde
Browse files Browse the repository at this point in the history
  • Loading branch information
shironegi39 committed Sep 20, 2024
1 parent c3de4db commit c9e7bf3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/app/src/client/components/Admin/G2GDataTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,13 @@ const G2GDataTransfer = (): JSX.Element => {
<div className="alert alert-warning mt-4">
<p className="mb-1">{t('commons:g2g_data_transfer.transfer_key_limit')}</p>
<p className="mb-1">{t('commons:g2g_data_transfer.once_transfer_key_used')}</p>
{/* eslint-disable-next-line react/no-danger */}
<p className="mb-0" dangerouslySetInnerHTML={{ __html: t('commons:g2g_data_transfer.transfer_to_growi_cloud', { documentationUrl }) }} />
<p
className="mb-0"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: t('commons:g2g_data_transfer.transfer_to_growi_cloud', { documentationUrl: documentationUrl || 'docs.growi.org' }),
}}
/>
</div>
</div>
);
Expand Down

0 comments on commit c9e7bf3

Please sign in to comment.