Skip to content

Commit 5ae48af

Browse files
committed
fix: modal docs example snippet formatting
1 parent 7ef0e19 commit 5ae48af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
8181
*
8282
* const showModal = () => setVisible(true);
8383
* const hideModal = () => setVisible(false);
84-
* const containerStyle = {backgroundColor: 'white', padding: 20};
84+
* const containerStyle = { backgroundColor: 'white', padding: 20 };
8585
*
8686
* return (
8787
* <PaperProvider>
@@ -90,7 +90,7 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
9090
* <Text>Example Modal. Click outside this area to dismiss.</Text>
9191
* </Modal>
9292
* </Portal>
93-
* <Button style={{marginTop: 30}} onPress={showModal}>
93+
* <Button style={{ marginTop: 30 }} onPress={showModal}>
9494
* Show
9595
* </Button>
9696
* </PaperProvider>

0 commit comments

Comments
 (0)