Skip to content

Commit 130f875

Browse files
committed
Fix typing
1 parent 3a7fe93 commit 130f875

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Header/Collaborators/AddCollaboratorForm.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export const AddCollaboratorForm = () => {
1717
Authorization.WriteCode
1818
);
1919

20+
const onAuthorizationChanged = (value: string) => {
21+
setAuthorization(value as Authorization);
22+
};
23+
2024
const onSubmit = async (evt: React.FormEvent<HTMLFormElement>) => {
2125
evt.preventDefault();
2226

@@ -72,7 +76,7 @@ export const AddCollaboratorForm = () => {
7276

7377
<PermissionSelect
7478
value={authorization}
75-
onChange={setAuthorization}
79+
onChange={onAuthorizationChanged}
7680
css={{
7781
position: 'absolute',
7882
top: 0,

0 commit comments

Comments
 (0)