Improve TS around OptionsButton
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
45cfdef45d
commit
304339f589
1 changed files with 2 additions and 8 deletions
|
@ -239,16 +239,10 @@ export function InviteButton({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OptionsButton({
|
export function OptionsButton(props: Omit<Props, "variant">) {
|
||||||
className,
|
|
||||||
...rest
|
|
||||||
}: {
|
|
||||||
className?: string;
|
|
||||||
[index: string]: unknown;
|
|
||||||
}) {
|
|
||||||
return (
|
return (
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
<Button variant="icon" {...rest}>
|
<Button variant="icon" {...props}>
|
||||||
<OverflowIcon />
|
<OverflowIcon />
|
||||||
</Button>
|
</Button>
|
||||||
{() => "Options"}
|
{() => "Options"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue