loading...
- )}
- {roleCan(role, 'update-custom-stream') &&
- roleCan(role, 'delete-custom-stream') && (
+ {roleCan(role, 'edit-tokens') && authState && (
<>
-
- {/*
- Include an empty object at the end to create an extra input for a new custom stream.
- We need it to be part of the array (rather than JSX below) for DOM diffing to match the key and retain focus.
- */}
- {customStreams.map(({ link, label, kind }, idx) => (
-
+
Invites
+ {newInvite && (
+
+ Invite link created:{' '}
+
+ "{newInvite.name}"
+
+
+ )}
+ {authState.invites.map(({ id, name, role }) => (
+
+ ))}
+
Sessions
+ {authState.sessions.map(({ id, name, role }) => (
+
))}
-
>
)}
- {roleCan(role, 'edit-tokens') && authState && (
- <>
-
-
-
Invites
- {newInvite && (
-
- Invite link created:{' '}
-
- "{newInvite.name}"
-
-
- )}
- {authState.invites.map(({ id, name, role }) => (
-
- ))}
-
Sessions
- {authState.sessions.map(({ id, name, role }) => (
-
- ))}
-
- >
- )}
-