Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const SheetSizing: FC = () => {
const [visible, show, hide] = useToggle(false);
const [position, setPosition] = useSelectState("left");
const [horizontalSize, setHorizontalSize] = useSelectState<
SheetHorizontalSize
>("media");
const [verticalSize, setVerticalSize] = useSelectState(
"recommended"
);
const isHorizontal = position === "left" || position === "right";
const [emulate, setEmulate] = useState(false);
const { isDesktop } = useAppSize();
if (emulate && !isDesktop) {
setEmulate(false);
}
return (
<form></form>
const SheetSizing: FC = () => {
const [visible, show, hide] = useToggle(false);
const [position, setPosition] = useSelectState("left");
const [horizontalSize, setHorizontalSize] = useSelectState<
SheetHorizontalSize
>("media");
const [verticalSize, setVerticalSize] = useSelectState(
"recommended"
);
const isHorizontal = position === "left" || position === "right";
const [emulate, setEmulate] = useState(false);
const { isDesktop } = useAppSize();
if (emulate && !isDesktop) {
setEmulate(false);
}
return (
<form>
<fieldset>
</fieldset></form>
const SheetSizing: FC = () => {
const [visible, show, hide] = useToggle(false);
const [position, setPosition] = useSelectState("left");
const [horizontalSize, setHorizontalSize] = useSelectState<
SheetHorizontalSize
>("media");
const [verticalSize, setVerticalSize] = useSelectState(
"recommended"
);
const isHorizontal = position === "left" || position === "right";
const [emulate, setEmulate] = useState(false);
const { isDesktop } = useAppSize();
if (emulate && !isDesktop) {
setEmulate(false);
}
return (