We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7fe93 commit 130f875Copy full SHA for 130f875
packages/app/src/app/pages/Sandbox/Editor/Header/Collaborators/AddCollaboratorForm.tsx
@@ -17,6 +17,10 @@ export const AddCollaboratorForm = () => {
17
Authorization.WriteCode
18
);
19
20
+ const onAuthorizationChanged = (value: string) => {
21
+ setAuthorization(value as Authorization);
22
+ };
23
+
24
const onSubmit = async (evt: React.FormEvent<HTMLFormElement>) => {
25
evt.preventDefault();
26
@@ -72,7 +76,7 @@ export const AddCollaboratorForm = () => {
72
76
73
77
<PermissionSelect
74
78
value={authorization}
75
- onChange={setAuthorization}
79
+ onChange={onAuthorizationChanged}
80
css={{
81
position: 'absolute',
82
top: 0,
0 commit comments