From 191581e287f78ba325fdd7681c83586309b59df2 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Tue, 19 Jul 2022 13:58:34 +0200 Subject: Simplify Navigation Component Extract the styles from the navigation component to common styles, and convert it to a function component. Signed-off-by: Hassan Abouelela --- src/components/OAuth2Button.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components') diff --git a/src/components/OAuth2Button.tsx b/src/components/OAuth2Button.tsx index 885c080..be8d160 100644 --- a/src/components/OAuth2Button.tsx +++ b/src/components/OAuth2Button.tsx @@ -11,7 +11,7 @@ import { selectable } from "../commonStyles"; interface OAuth2ButtonProps { scopes?: OAuthScopes[], - rerender: () => void + rerender?: () => void } const iconStyles = css` @@ -59,7 +59,7 @@ async function login(props: OAuth2ButtonProps, errorDialog: React.RefObject
; -- cgit v1.2.3