|
|
@@ -1,5 +1,5 @@
|
|
|
import { Col, Row } from 'react-bootstrap'
|
|
|
-import { useTranslation } from 'react-i18next'
|
|
|
+import { Trans } from 'react-i18next'
|
|
|
import GroupInvitesItemFooter from './group-invites-item-footer'
|
|
|
import type { TeamInvite } from '../../../../../../types/team-invite'
|
|
|
|
|
|
@@ -10,17 +10,22 @@ type GroupInvitesItemProps = {
|
|
|
export default function GroupInvitesItem({
|
|
|
teamInvite,
|
|
|
}: GroupInvitesItemProps) {
|
|
|
- const { t } = useTranslation()
|
|
|
-
|
|
|
return (
|
|
|
<Row className="row-spaced">
|
|
|
<Col md={8} mdOffset={2} className="text-center">
|
|
|
<div className="card">
|
|
|
<div className="page-header">
|
|
|
<h2>
|
|
|
- {t('invited_to_group', {
|
|
|
- inviterName: teamInvite.inviterName,
|
|
|
- })}
|
|
|
+ <Trans
|
|
|
+ i18nKey="invited_to_group"
|
|
|
+ values={{ inviterName: teamInvite.inviterName }}
|
|
|
+ shouldUnescape
|
|
|
+ tOptions={{ interpolation: { escapeValue: true } }}
|
|
|
+ components={
|
|
|
+ /* eslint-disable-next-line react/jsx-key */
|
|
|
+ [<span className="team-invite-name" />]
|
|
|
+ }
|
|
|
+ />
|
|
|
</h2>
|
|
|
</div>
|
|
|
<GroupInvitesItemFooter teamInvite={teamInvite} />
|