1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-25 11:42:30 +01:00

fix build errors

This commit is contained in:
Puyodead1 2023-12-01 11:57:36 -05:00
parent c39e31ba75
commit 3fcfa05c01
No known key found for this signature in database
GPG Key ID: BA5F91AAEF68E5CE
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ interface Props {
position: DOMRect;
element: React.ReactNode;
isOpen: boolean;
placement: "left" | "right" | "top" | "bottom";
placement?: "left" | "right" | "top" | "bottom";
}
function PopoutRenderer({ position, element, placement, close }: Props) {

View File

@ -7,7 +7,7 @@ export interface PopoutOpenProps {
}
const useValue = () => {
const [position, setPosition] = React.useState({ x: 0, y: 0 });
const [position, setPosition] = React.useState<DOMRect>(new DOMRect(0, 0, 0, 0));
const [element, setElement] = React.useState<React.ReactNode>();
const [isOpen, setIsOpen] = React.useState(false);
const [placement, setPlacement] = React.useState<"left" | "right" | "top" | "bottom">();