2023-11-09 11:33:13 -05:00
|
|
|
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'
|
2024-10-10 03:26:18 -04:00
|
|
|
import { bsVersionDecorator } from '../../../../.storybook/utils/with-bootstrap-switcher'
|
2023-11-09 11:33:13 -05:00
|
|
|
|
|
|
|
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' },
|
2024-10-10 03:26:18 -04:00
|
|
|
...bsVersionDecorator.argTypes,
|
2023-11-09 11:33:13 -05:00
|
|
|
},
|
|
|
|
decorators: [ScopeDecorator],
|
|
|
|
}
|