Skip to content

Commit

Permalink
add handler in FullWidthAlert story
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Jun 11, 2024
1 parent b3c0aed commit 932d706
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ export const SynapseNavDrawerIsShowing: Story = {
},
render: args => (
<>
<SynapseNavDrawer initIsOpen={false} />
<SynapseNavDrawer
initIsOpen={false}
gotoPlace={(href: string) => {
window.alert(`Nav bar calling back to change route to ${href}`)
}}
/>
<FullWidthAlert {...args} />
</>
),
Expand Down

0 comments on commit 932d706

Please sign in to comment.