mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-26 18:44:47 +00:00
fix(storybook): restore build by mocking useLocation (#16472)
This commit is contained in:
@@ -11,6 +11,14 @@ export function useNavigate() {
|
|||||||
return () => undefined
|
return () => undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function useLocation() {
|
||||||
|
return {
|
||||||
|
pathname: "/story/session/story-session",
|
||||||
|
search: "",
|
||||||
|
hash: "",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export function MemoryRouter(props: ParentProps) {
|
export function MemoryRouter(props: ParentProps) {
|
||||||
return props.children
|
return props.children
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user