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:
parent
c39e31ba75
commit
3fcfa05c01
@ -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) {
|
||||
|
@ -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">();
|
||||
|
Loading…
Reference in New Issue
Block a user