feat: Add Layout with AppBar and Drawer
This commit is contained in:
10
packages/web/src/components/HideOnScroll/index.tsx
Normal file
10
packages/web/src/components/HideOnScroll/index.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import Slide, { SlideProps } from '@mui/material/Slide';
|
||||
import useScrollTrigger from '@mui/material/useScrollTrigger';
|
||||
|
||||
export default function HideOnScroll(props: SlideProps) {
|
||||
const trigger = useScrollTrigger();
|
||||
|
||||
return (
|
||||
<Slide appear={false} direction="down" in={!trigger} {...props} />
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user