Legacy polls notice (#141)

* Add notice for legacy polls

* Update badges
This commit is contained in:
Luke Vella 2022-04-27 17:15:56 +01:00 committed by GitHub
parent 671f5b16fd
commit a91013ab16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 79 additions and 53 deletions

View file

@ -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,
},
})}
>