1import { Col, H3, LoadingSpinner, Row, Text, Button } from '@tlon/indigo-react';
2import Modal from 'components/L2/Modal';
3import { ReactComponent as InviteIcon } from 'assets/invite.svg';
4import { InviteGeneratingStatus } from '../../views/Invite/useInvites';
5import BodyPane from './Window/BodyPane';
7interface CreatingInvitesModalProps {
8 status: InviteGeneratingStatus;
15export const CreatingInvitesModal = ({
21}: CreatingInvitesModalProps) => {
22 const successfulInvites = current > 1 ? current - 1 : 0;
26 show={status !== 'initial'}
28 hideClose={status !== 'finished'}>
31 {status === 'generating' && (
32 <Row alignItems="center">
33 <LoadingSpinner dark />
34 <Text bold marginLeft={2}>
35 Updating Invite {current}/{total}...
39 {status === 'finished' && (
48 The planets you selected are re-ticketed and appear as new
49 invitation links under each star.
52 <Button className="secondary" ml="auto" onClick={hide}>
58 {status === 'errored' && (
61 There was an error while updating your invites:
64 <Text color="red" mono marginBottom={3}>
68 {!!successfulInvites && (
70 At least {successfulInvites} planet
71 {successfulInvites > 1 ? 's' : ''} were successfully
72 re-ticketed and appear as new invitation links under each
76 <Button className="secondary" 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