Fix types
This commit is contained in:
parent
92a50fe51d
commit
6eb77b7c2f
2 changed files with 9 additions and 3 deletions
|
@ -71,7 +71,11 @@ type ClientProviderState = Omit<
|
||||||
"changePassword" | "logout" | "setClient"
|
"changePassword" | "logout" | "setClient"
|
||||||
> & { error?: Error };
|
> & { error?: Error };
|
||||||
|
|
||||||
export const ClientProvider: FC = ({ children }) => {
|
interface Props {
|
||||||
|
children: JSX.Element;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const ClientProvider: FC<Props> = ({ children }) => {
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const [
|
const [
|
||||||
{ loading, isAuthenticated, isPasswordlessUser, client, userName, error },
|
{ loading, isAuthenticated, isPasswordlessUser, client, userName, error },
|
||||||
|
|
|
@ -121,8 +121,10 @@ export const Button = forwardRef<HTMLButtonElement, Props>(
|
||||||
{...mergeProps(rest, filteredButtonProps)}
|
{...mergeProps(rest, filteredButtonProps)}
|
||||||
ref={buttonRef}
|
ref={buttonRef}
|
||||||
>
|
>
|
||||||
{children}
|
<>
|
||||||
{variant === "dropdown" && <ArrowDownIcon />}
|
{children}
|
||||||
|
{variant === "dropdown" && <ArrowDownIcon />}
|
||||||
|
</>
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue