Skip to content

Commit

Permalink
Merge pull request #412 from JramR7/MAT-57
Browse files Browse the repository at this point in the history
MAT-57 Fix mobile menu item stories
  • Loading branch information
codypearce authored Jun 23, 2020
2 parents d00008e + 8ba590d commit 34a6f3b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 4 additions & 0 deletions src/Components/Menu/Menu.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,23 @@ export default storiesOf('Components|Menu', module)
}>
<MenuItem
text={'Menu Item 1'}
style={{ paddingHorizontal: '12%' }}
onPress={() => store.set({ visibleThree: false })}
/>
<MenuItem
text={'Menu Item 2'}
style={{ paddingHorizontal: '12%' }}
onPress={() => store.set({ visibleThree: false })}
/>
<MenuItem
text={'Menu Item 3'}
style={{ paddingHorizontal: '12%' }}
disabled
onPress={() => store.set({ visibleThree: false })}
/>
<MenuItem
text={'Menu Item 4'}
style={{ paddingHorizontal: '12%' }}
onPress={() => store.set({ visibleThree: false })}
/>
</Menu>
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Menu/MenuItem/MenuItem.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default storiesOf('Components|Menu/MenuItem', module)
<Container>
<Header title={'Menu Item'} />

<Paper radius={6} style={{ width: 324, flex: 1 }}>
<Paper radius={6} style={{ width: 324 }}>
<MenuItem text="Menu Item 1" />
<MenuItem text="Menu Item 2" />
<Divider />
Expand All @@ -26,7 +26,7 @@ export default storiesOf('Components|Menu/MenuItem', module)
<Container>
<Header title={'Menu icons'} />

<Paper radius={6} style={{ width: 324, flex: 1 }}>
<Paper radius={6} style={{ width: 324 }}>
<MenuItem
text={'Preview'}
icon={<Icon name={'assignment-turned-in'} />}
Expand All @@ -43,7 +43,7 @@ export default storiesOf('Components|Menu/MenuItem', module)
<Container>
<Header title={'Menu keyboard commands'} />

<Paper radius={6} style={{ width: 324, flex: 1 }}>
<Paper radius={6} style={{ width: 324 }}>
<MenuItem
text={'Cut'}
icon={<Icon name={'content-cut'} />}
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Menu/MenuItem/MenuItem.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ import { StyleSheet } from 'react-native';

const styles = StyleSheet.create({
container: {
height: 48,
minHeight: 32,
width: 324,
minWidth: 124,
flex: 1,
alignItems: 'center',
flexDirection: 'row',
paddingHorizontal: 24,
paddingVertical: 12,
paddingHorizontal: 24,
},
title: {
fontSize: 16,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ exports[`MenuItem Renders 1`] = `
Object {
"alignItems": "center",
"backgroundColor": null,
"flex": 1,
"flexDirection": "row",
"height": 48,
"minHeight": 32,
"minWidth": 124,
"paddingHorizontal": 24,
Expand Down

0 comments on commit 34a6f3b

Please sign in to comment.