1import { Col, H3, LoadingSpinner, Row, Text } from '@tlon/indigo-react';
2import Modal from 'components/L2/Modal';
3import { Button } from 'indigo-react';
4import { InviteGeneratingStatus } from './useInvites';
6interface GeneratingModalProps {
7 status: InviteGeneratingStatus;
14export const GeneratingModal = ({
20}: GeneratingModalProps) => {
21 const successfulInvites = current > 1 ? current - 1 : 0;
24 show={status !== 'initial'}
26 hideClose={status !== 'finished'}>
28 {status === 'generating' && (
31 <Row alignItems="center">
32 <LoadingSpinner dark />
34 Generating {current} of {total} Invites
39 Each invite will require four transactions to be signed, unless
40 your point is owned by a master ticket.
44 {status === 'finished' && (
47 <span className="ph1 number-emphasis">{total}</span> Invites
50 <Text marginBottom={4}>
51 Your invites have been sent to the roller for confirmation in the
52 next batch. Check the point's page to see its status.
56 <Button solid onClick={hide}>
61 {status === 'errored' && (
64 There was an error while generating your invites:
67 <Text color="red" mono marginBottom={3}>
71 {!!successfulInvites && (
73 At least {successfulInvites} invite
74 {successfulInvites > 1 ? 's' : ''} were successfully generated.
75 Go back to see them or try again.
80 <Button solid onClick={hide}>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list