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

pull/16509/head
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
1 changed files with 8 additions and 0 deletions

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
}