Skip to content

Commit

Permalink
fix(messenger): button restart the app in duplicate in crash screen
Browse files Browse the repository at this point in the history
Signed-off-by: clegirar <clemntgirard@gmail.com>
  • Loading branch information
clegirar committed Apr 19, 2021
1 parent 6ab865f commit 0f60f86
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions js/packages/components/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,40 +75,6 @@ const RestartButton: React.FC<{}> = ({}) => {
)
}

const ShowAppInspectorButton: React.FC<{}> = ({}) => {
const [{ border, margin, padding }] = useStyles()
const { t }: { t: any } = useTranslation()
const { setDebugMode } = useMsgrContext()

return (
<TouchableOpacity
onPress={() => setDebugMode(true)}
activeOpacity={0.7}
style={[
margin.top.big,
margin.bottom.medium,
border.radius.small,
padding.medium,
{
backgroundColor: '#CED2FF',
alignItems: 'center',
width: '100%',
},
]}
>
<Text
style={{
color: '#3F49EA',
fontWeight: '700',
textTransform: 'uppercase',
}}
>
{t('error.restart-app')}
</Text>
</TouchableOpacity>
)
}

const ErrorScreenContainer: React.FC<{ labelTitle: string; children: React.ReactElement[] }> = ({
labelTitle,
children,
Expand Down Expand Up @@ -153,7 +119,6 @@ const ErrorScreenContainer: React.FC<{ labelTitle: string; children: React.React
>
{children}
<RestartButton />
<ShowAppInspectorButton />
</View>
</Body>
</View>
Expand Down

0 comments on commit 0f60f86

Please sign in to comment.