mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-06 04:31:50 +02:00
Legacy polls notice (#141)
* Add notice for legacy polls * Update badges
This commit is contained in:
parent
671f5b16fd
commit
a91013ab16
3 changed files with 79 additions and 53 deletions
|
@ -21,6 +21,7 @@ export interface TooltipProps {
|
|||
content?: React.ReactNode;
|
||||
disabled?: boolean;
|
||||
className?: string;
|
||||
width?: number;
|
||||
}
|
||||
|
||||
const Tooltip: React.VoidFunctionComponent<TooltipProps> = ({
|
||||
|
@ -29,6 +30,7 @@ const Tooltip: React.VoidFunctionComponent<TooltipProps> = ({
|
|||
children,
|
||||
disabled,
|
||||
content,
|
||||
width,
|
||||
}) => {
|
||||
const arrowRef = React.useRef<HTMLDivElement | null>(null);
|
||||
const [open, setOpen] = React.useState(false);
|
||||
|
@ -109,6 +111,7 @@ const Tooltip: React.VoidFunctionComponent<TooltipProps> = ({
|
|||
position: strategy,
|
||||
top: y ?? "",
|
||||
left: x ?? "",
|
||||
maxWidth: width,
|
||||
},
|
||||
})}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue