fix(storybook): restore build by mocking useLocation (#16472)
parent
e99d7a4292
commit
218869cf45
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue