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({
|
||||
className,
|
||||
...rest
|
||||
}: {
|
||||
className?: string;
|
||||
[index: string]: unknown;
|
||||
}) {
|
||||
export function OptionsButton(props: Omit<Props, "variant">) {
|
||||
return (
|
||||
<TooltipTrigger>
|
||||
<Button variant="icon" {...rest}>
|
||||
<Button variant="icon" {...props}>
|
||||
<OverflowIcon />
|
||||
</Button>
|
||||
{() => "Options"}
|
||||
|
|
Loading…
Add table
Reference in a new issue