Hide the sso buttons if registration is not allowed
This commit is contained in:
@@ -294,11 +294,13 @@ const SignIn = (): JSX.Element => {
|
||||
<StyledButton type="submit" disabled={formik.isSubmitting}>
|
||||
Sign In
|
||||
</StyledButton>
|
||||
<SsoButtons
|
||||
intent="login"
|
||||
providers={oauthProviders}
|
||||
disabled={formik.isSubmitting}
|
||||
/>
|
||||
{registrationEnabled && (
|
||||
<SsoButtons
|
||||
intent="login"
|
||||
providers={oauthProviders}
|
||||
disabled={formik.isSubmitting}
|
||||
/>
|
||||
)}
|
||||
</Form>
|
||||
)}
|
||||
</Formik>
|
||||
|
||||
Reference in New Issue
Block a user