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

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
}