diff --git a/apps/ui/package.json b/apps/ui/package.json index 23f13083..d4920bcb 100644 --- a/apps/ui/package.json +++ b/apps/ui/package.json @@ -4,7 +4,7 @@ "repository": "https://github.com/parcelvoy/platform", "dependencies": { "@fontsource/inter": "^4.5.14", - "@headlessui/react": "1.7.13", + "@headlessui/react": "1.7.18", "@heroicons/react": "^2.0.11", "@monaco-editor/react": "^4.4.6", "@popperjs/core": "^2.11.6", @@ -25,7 +25,7 @@ "react": "^18.2.0", "react-charts": "^3.0.0-beta.57", "react-dom": "^18.2.0", - "react-hook-form": "^7.33.0", + "react-hook-form": "7.51.1", "react-hot-toast": "^2.4.0", "react-popper": "^2.3.0", "react-router-dom": "^6.4.2", diff --git a/apps/ui/src/ui/Modal.tsx b/apps/ui/src/ui/Modal.tsx index 4253626e..e25adec9 100644 --- a/apps/ui/src/ui/Modal.tsx +++ b/apps/ui/src/ui/Modal.tsx @@ -1,5 +1,5 @@ import { Dialog, Transition } from '@headlessui/react' -import { Fragment, PropsWithChildren, ReactNode, useRef } from 'react' +import { Fragment, PropsWithChildren, ReactNode } from 'react' import Button from './Button' import { CloseIcon } from './icons' import './Modal.css' @@ -27,14 +27,14 @@ export default function Modal({ size, zIndex = 999, }: PropsWithChildren) { - const ref = useRef(null) return ( - + > ) } -
+
{children}
{ @@ -96,12 +96,15 @@ export default function Modal({ ) } { - size !== 'fullscreen' &&