feat: updates

This commit is contained in:
qier222 2022-06-08 00:07:04 +08:00
parent d09c5fd171
commit 133881d287
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
28 changed files with 389 additions and 115 deletions

View file

@ -1,14 +1,18 @@
import useBreakpoint from '@/web/hooks/useBreakpoint'
import { ReactQueryDevtools } from 'react-query/devtools'
const Devtool = () => {
const breakpoint = useBreakpoint()
const isMobile = ['sm', 'md'].includes(breakpoint)
return (
<ReactQueryDevtools
initialIsOpen={false}
toggleButtonProps={{
style: {
position: 'fixed',
bottom: 0,
bottom: isMobile ? 'auto' : 0,
right: 0,
top: isMobile ? 0 : 1,
left: 'auto',
},
}}