diff --git a/packages/components/src/components/Snackbar/Snackbar.stories.tsx b/packages/components/src/components/Snackbar/Snackbar.stories.tsx index 1501c6b3..dcd2e070 100644 --- a/packages/components/src/components/Snackbar/Snackbar.stories.tsx +++ b/packages/components/src/components/Snackbar/Snackbar.stories.tsx @@ -35,41 +35,50 @@ export default meta type Story = StoryObj +const isWeb = Platform.OS !== 'web' + const mobileComponentRenderer = (props: SnackbarProps) => { - const { isError, messageA11y, onActionPressed } = props.data || {} + const { isError, messageA11y, onActionPressed, offset } = props.data || {} const { show } = useSnackbar() - const onPressSnackbarOffset = () => { - show(props.message as string, { - isError, - messageA11y, - onActionPressed, - offset: 500, - }) - } - const onPressSnackbar = () => { show(props.message as string, { isError, messageA11y, onActionPressed, + offset, }) } + return ( <> -