Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit b0caf57

Browse files
committed
feat(app): remove surface
1 parent 056d8cf commit b0caf57

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

app/src/app/(nav)/[account]/settings/details.tsx

+19-21
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,26 @@ export default function AccountDetails() {
5050
<Pane flex>
5151
<Appbar mode="large" headline="Account details" />
5252

53-
<Surface style={styles.surface}>
54-
<View style={styles.fields}>
55-
<AccountNameFormField name="name" control={control} required />
56-
</View>
53+
<View style={styles.fields}>
54+
<AccountNameFormField name="name" control={control} required />
55+
</View>
5756

58-
<Actions>
59-
<FormSubmitButton
60-
mode="contained"
61-
requireChanges
62-
control={control}
63-
onPress={handleSubmit(async (input) => {
64-
await update(
65-
{ account, name: input.name },
66-
{ optimisticResponse: { updateAccount: { id: a.id, name: input.name } } },
67-
);
68-
reset(input);
69-
})}
70-
>
71-
Update
72-
</FormSubmitButton>
73-
</Actions>
74-
</Surface>
57+
<Actions>
58+
<FormSubmitButton
59+
mode="contained"
60+
requireChanges
61+
control={control}
62+
onPress={handleSubmit(async (input) => {
63+
await update(
64+
{ account, name: input.name },
65+
{ optimisticResponse: { updateAccount: { id: a.id, name: input.name } } },
66+
);
67+
reset(input);
68+
})}
69+
>
70+
Update
71+
</FormSubmitButton>
72+
</Actions>
7573
</Pane>
7674
);
7775
}

0 commit comments

Comments
 (0)