({
onSubmit,
loading,
}: {
onSubmit: any;
loading: boolean;
})
| 35 | } |
| 36 | |
| 37 | function InviteMember({ |
| 38 | onSubmit, |
| 39 | loading, |
| 40 | }: { |
| 41 | onSubmit: any; |
| 42 | loading: boolean; |
| 43 | }) { |
| 44 | return ( |
| 45 | <> |
| 46 | <form className={styles.form} onSubmit={onSubmit}> |
| 47 | <Label htmlFor="email"> |
| 48 | Invite |
| 49 | <br /> |
| 50 | <span className={styles.subtitle}> |
| 51 | Send invitations via email. You can enter multiple emails, comma |
| 52 | separated. |
| 53 | </span> |
| 54 | </Label> |
| 55 | <div className={styles.flexRowGap2}> |
| 56 | <div className={styles.grow}> |
| 57 | <TextInput |
| 58 | id="email" |
| 59 | type="text" |
| 60 | icon={<FiUser />} |
| 61 | placeholder="user1@domain.com,user2@domain.com" |
| 62 | required |
| 63 | /> |
| 64 | </div> |
| 65 | <div className={styles.shrink}> |
| 66 | <NativeSelect |
| 67 | id="role" |
| 68 | icon={<FiUser />} |
| 69 | theme="blue" |
| 70 | options={[ |
| 71 | { label: 'Member', value: Roles.MEMBER }, |
| 72 | { label: 'Admin', value: Roles.ADMIN }, |
| 73 | ]} |
| 74 | /> |
| 75 | </div> |
| 76 | <div className={styles.shrink}> |
| 77 | <Button type="submit" disabled={loading}> |
| 78 | <FiSend /> |
| 79 | {loading ? 'Loading...' : 'Send'} |
| 80 | </Button> |
| 81 | </div> |
| 82 | </div> |
| 83 | </form> |
| 84 | </> |
| 85 | ); |
| 86 | } |
| 87 | |
| 88 | function TableMembers({ |
| 89 | users, |
nothing calls this directly
no outgoing calls
no test coverage detected