File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
[domain]/askgh/[owner]/[repo]/components Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const LoginModal = ({
3737 providers = { providers }
3838 callbackUrl = { callbackUrl }
3939 context = "login"
40- securityNoticeClosable = { true }
40+ hideSecurityNotice = { true }
4141 />
4242 </ div >
4343 </ DialogContent >
Original file line number Diff line number Diff line change @@ -17,14 +17,16 @@ interface AuthMethodSelectorProps {
1717 context : "login" | "signup" ;
1818 onProviderClick ?: ( providerId : string ) => void ;
1919 securityNoticeClosable ?: boolean ;
20+ hideSecurityNotice ?: boolean ;
2021}
2122
2223export const AuthMethodSelector = ( {
2324 providers,
2425 callbackUrl,
2526 context,
2627 onProviderClick,
27- securityNoticeClosable = false
28+ securityNoticeClosable = false ,
29+ hideSecurityNotice = false
2830} : AuthMethodSelectorProps ) => {
2931 const onSignInWithOauth = useCallback ( ( provider : string ) => {
3032 // Call the optional analytics callback first
@@ -56,7 +58,7 @@ export const AuthMethodSelector = ({
5658
5759 return (
5860 < >
59- < AuthSecurityNotice closable = { securityNoticeClosable } />
61+ { ! hideSecurityNotice && < AuthSecurityNotice closable = { securityNoticeClosable } /> }
6062 < DividerSet
6163 elements = { [
6264 ...( oauthProviders . length > 0 ? [
You can’t perform that action at this time.
0 commit comments