Fix types

This commit is contained in:
David Baker committed 2022-07-08 14:56:00 +01:00
1 parent 92a50fe51d
commit 6eb77b7c2f
2 files changed
+9 -3

No files matched your search

+4 -2
View File
@@ -121,8 +121,10 @@ export const Button = forwardRef<HTMLButtonElement, Props>(
{...mergeProps(rest, filteredButtonProps)}
ref={buttonRef}
>
{children}
{variant === "dropdown" && <ArrowDownIcon />}
<>
{children}
{variant === "dropdown" && <ArrowDownIcon />}
</>
</button>
);
}