Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Now left-right items added to the menu align with the label #80

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const styles = StyleSheet.create({
menuButton: {
margin: 10,
flexDirection: 'row',
alignItems: 'center',
},
buttonContainer: {
flexDirection: 'row',
Expand Down Expand Up @@ -80,7 +81,7 @@ const Menu : FCCWD<MenuProps> = (
>
{items.map((item, index) => (
<View key={index} style={rowStyle}>
<TouchableOpacity testID={`item_button_${index}`} onPress={() => { item.onPress && item.onPress(); closeMenu(); }} style={[styles.menuButton, { backgroundColor: menuStyle?.backgroundColor }]}>
<TouchableOpacity testID={`item_button_${index}`} onPress={() => { item.onPress && item.onPress(); closeMenu(); }} style={[styles.menuButton, { backgroundColor: menuStyle?.backgroundColor }]}>
{item.left && item.left}
<View style={styles.buttonContainer}>
<Text style={[
Expand Down
Loading