mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 13:33:39 -05:00
0639f266d8
[web] Redirect to invite screen if new user register with a pending group invitations GitOrigin-RevId: 39aeffd65b9d793c87e53398a700ad140794594e
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import GroupInvites from '@/features/subscription/components/group-invites/group-invites'
|
|
import type { TeamInvite } from '../../../../types/team-invite'
|
|
import { useMeta } from '../../hooks/use-meta'
|
|
import { ScopeDecorator } from '../../decorators/scope'
|
|
|
|
export const GroupInvitesDefault = () => {
|
|
const teamInvites: TeamInvite[] = [
|
|
{
|
|
email: 'email1@exammple.com',
|
|
token: 'token123',
|
|
inviterName: 'inviter1@example.com',
|
|
sentAt: new Date(),
|
|
_id: '123abc',
|
|
},
|
|
{
|
|
email: 'email2@exammple.com',
|
|
token: 'token456',
|
|
inviterName: 'inviter2@example.com',
|
|
sentAt: new Date(),
|
|
_id: '456bcd',
|
|
},
|
|
]
|
|
|
|
useMeta({ 'ol-teamInvites': teamInvites })
|
|
|
|
return (
|
|
<div className="content content-alt team-invite">
|
|
<GroupInvites />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default {
|
|
title: 'Subscription / Group Invites',
|
|
component: GroupInvites,
|
|
args: {
|
|
show: true,
|
|
},
|
|
argTypes: {
|
|
handleHide: { action: 'close modal' },
|
|
onDisableSSO: { action: 'callback' },
|
|
},
|
|
decorators: [ScopeDecorator],
|
|
}
|