mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 06:42:26 +00:00
fix(storybook): restore build by mocking useLocation (#16472)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user