mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
LogBox - Rename and re-order dismiss/minimize buttons
Summary: Based on feedback "minimize" wasn't clear and "close" is more common so it should be on the right Changelog: [Internal] Reviewed By: cpojer Differential Revision: D18353907 fbshipit-source-id: bccfc9be6c225a9adb31ef11d6a91330a7d4e008
This commit is contained in:
committed by
Facebook Github Bot
parent
8901a0b863
commit
f1a11b6ce4
@@ -54,8 +54,8 @@ function LogBoxInspectorFooter(props: Props): React.Node {
|
||||
|
||||
return (
|
||||
<View style={styles.root}>
|
||||
<FooterButton text="Minimize" onPress={props.onMinimize} />
|
||||
<FooterButton text="Dismiss" onPress={props.onDismiss} />
|
||||
<FooterButton text="Close" onPress={props.onMinimize} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -256,11 +256,11 @@ exports[`LogBoxInspectorFooter should render two buttons for warning with no fat
|
||||
>
|
||||
<FooterButton
|
||||
onPress={[Function]}
|
||||
text="Minimize"
|
||||
text="Dismiss"
|
||||
/>
|
||||
<FooterButton
|
||||
onPress={[Function]}
|
||||
text="Dismiss"
|
||||
text="Close"
|
||||
/>
|
||||
</View>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user