mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-15 01:50:57 -05:00
f57704b844
Add website redesign query string override to arbitrary BS5 pages GitOrigin-RevId: 72816f00d6e2e92dab21035097abc540689af1d3
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { Trans } from 'react-i18next'
|
|
import GroupInvitesItemFooter from './group-invites-item-footer'
|
|
import type { TeamInvite } from '../../../../../../types/team-invite'
|
|
import OLPageContentCard from '@/features/ui/components/ol/ol-page-content-card'
|
|
import OLRow from '@/features/ui/components/ol/ol-row'
|
|
import OLCol from '@/features/ui/components/ol/ol-col'
|
|
|
|
type GroupInvitesItemProps = {
|
|
teamInvite: TeamInvite
|
|
}
|
|
|
|
export default function GroupInvitesItem({
|
|
teamInvite,
|
|
}: GroupInvitesItemProps) {
|
|
return (
|
|
<OLRow className="row-spaced">
|
|
<OLCol lg={{ span: 8, offset: 2 }} className="text-center">
|
|
<OLPageContentCard>
|
|
<div className="page-header">
|
|
<h2>
|
|
<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} />
|
|
</OLPageContentCard>
|
|
</OLCol>
|
|
</OLRow>
|
|
)
|
|
}
|