Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jul 13, 2024
1 parent b89e54a commit da7b8e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/providers/stable-router-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
import { useLayoutEffect } from 'react'
import type { NavigateFunction } from 'react-router-dom'
import {
useLocation,
useNavigate,
useParams,
useSearchParams,
} from 'react-router-dom'
import type { NavigateFunction } from 'react-router-dom'

import { setNavigate, setRoute } from '~/atoms/route'

declare global {
export const router: {
navigate: NavigateFunction
showSettings: (initialTab?: string | undefined) => () => void
}
interface Window {
router: typeof router
}
}
window.router = {
navigate() {},
// eslint-disable-next-line unicorn/consistent-function-scoping
showSettings: () => () => {},
}

/**
Expand Down

0 comments on commit da7b8e4

Please sign in to comment.