Skip to content

Commit

Permalink
[PAY-1440][PAY-1441] Mobile inbox settings UI fixes (#3571)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Jun 12, 2023
1 parent 001007e commit 6be0c64
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ const useStyles = makeStyles(({ spacing, palette, typography }) => ({
borderBottomColor: palette.neutralLight7,
borderBottomWidth: 2,
borderBottomLeftRadius: 1
},
scrollContainer: {
backgroundColor: palette.white
}
}))

Expand Down Expand Up @@ -112,8 +115,8 @@ export const InboxSettingsScreen = () => {
icon={IconMessage}
>
<ScreenContent>
<ScrollView>
{options.map((opt) => (
<ScrollView style={styles.scrollContainer}>
{options.map((opt, index) => (
<TouchableOpacity
onPress={() => {
const newPermission = opt.value as ChatPermission
Expand All @@ -122,7 +125,15 @@ export const InboxSettingsScreen = () => {
key={opt.title}
>
<View style={styles.settingsRow}>
<View style={styles.settingsContent}>
<View
style={[
styles.settingsContent,
// Hide bottom border on last element
index === options.length - 1
? { borderBottomWidth: 0 }
: null
]}
>
<View style={styles.radioTitleRow}>
<RadioButton
checked={localPermission === opt.value}
Expand Down

0 comments on commit 6be0c64

Please sign in to comment.