add storybook crash button
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
useDeviceGeolocationApi,
|
||||
useRequestDeviceGeolocation,
|
||||
} from '#/geolocation'
|
||||
import {Sentry} from '#/logger/sentry/lib'
|
||||
import {Admonitions} from './Admonitions'
|
||||
import {Breakpoints} from './Breakpoints'
|
||||
import {Buttons} from './Buttons'
|
||||
@@ -97,10 +98,18 @@ export default function Storybook() {
|
||||
}
|
||||
})
|
||||
}}
|
||||
label="crash">
|
||||
label="Get GPS location">
|
||||
<ButtonText>Get GPS Location</ButtonText>
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
color="negative"
|
||||
size="large"
|
||||
onPress={() => Sentry.nativeCrash()}
|
||||
label="Crash the app to test Sentry">
|
||||
<ButtonText>Crash the app</ButtonText>
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
color="primary"
|
||||
size="large"
|
||||
|
||||
Reference in New Issue
Block a user