Skip to content

Commit a9e709f

Browse files
authored
fix(mobile): center Android header confirmation buttons (#32239)
1 parent af96a01 commit a9e709f

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎apps/mobile/src/components/ui/AppBar.android.tsx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,15 @@ function AppBarView(props: AppBarProps & { readonly searchState?: SearchState })
155155
</Menu>
156156
));
157157
const confirmButton = props.confirm ? (
158-
<Button
159-
label={props.confirm.label}
160-
tone="text"
161-
loading={props.confirm.loading}
162-
disabled={props.confirm.disabled}
163-
onPress={props.confirm.onPress}
164-
/>
158+
<View className="self-center">
159+
<Button
160+
label={props.confirm.label}
161+
tone="text"
162+
loading={props.confirm.loading}
163+
disabled={props.confirm.disabled}
164+
onPress={props.confirm.onPress}
165+
/>
166+
</View>
165167
) : null;
166168
const options =
167169
props.embedded || props.sheet ? null : (

0 commit comments

Comments
 (0)