fix(storybook): restore build by mocking useLocation (#16472)

This commit is contained in:
Karan Handa 2026-03-07 21:25:43 +05:30 committed by GitHub
parent e99d7a4292
commit 218869cf45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,14 @@ export function useNavigate() {
return () => undefined
}
export function useLocation() {
return {
pathname: "/story/session/story-session",
search: "",
hash: "",
}
}
export function MemoryRouter(props: ParentProps) {
return props.children
}