chore: add show testimonial as an enabled feature (#38651)
This commit is contained in:
@@ -7,6 +7,7 @@ import { PropsWithChildren, useEffect, useState } from 'react'
|
||||
|
||||
import { useFlag } from 'common'
|
||||
import { DocsButton } from 'components/ui/DocsButton'
|
||||
import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
|
||||
import { BASE_PATH } from 'lib/constants'
|
||||
import { auth, buildPathWithParams, getAccessToken, getReturnToPath } from 'lib/gotrue'
|
||||
import { tweets } from 'shared-data'
|
||||
@@ -30,6 +31,8 @@ const SignInLayout = ({
|
||||
const { resolvedTheme } = useTheme()
|
||||
const ongoingIncident = useFlag('ongoingIncident')
|
||||
|
||||
const showTestimonial = useIsFeatureEnabled('dashboard_auth:show_testimonial')
|
||||
|
||||
// This useEffect redirects the user to MFA if they're already halfway signed in
|
||||
useEffect(() => {
|
||||
auth
|
||||
@@ -148,7 +151,7 @@ const SignInLayout = ({
|
||||
</main>
|
||||
|
||||
<aside className="flex-col items-center justify-center flex-1 flex-shrink hidden basis-1/4 xl:flex">
|
||||
{quote !== null && (
|
||||
{quote !== null && showTestimonial && (
|
||||
<div className="relative flex flex-col gap-6">
|
||||
<div className="absolute select-none -top-12 -left-11">
|
||||
<span className="text-[160px] leading-none text-foreground-muted/30">{'“'}</span>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
"dashboard_auth:sign_in_with_github": true,
|
||||
"dashboard_auth:sign_in_with_sso": true,
|
||||
"dashboard_auth:sign_in_with_email": true,
|
||||
"dashboard_auth:show_testimonial": true,
|
||||
|
||||
"database:replication": true,
|
||||
"database:roles": true,
|
||||
|
||||
@@ -102,6 +102,10 @@
|
||||
"type": "boolean",
|
||||
"description": "Enable the sign in with email/password provider"
|
||||
},
|
||||
"dashboard_auth:show_testimonial": {
|
||||
"type": "boolean",
|
||||
"description": "Enable the testimonial on the sign in/up page"
|
||||
},
|
||||
|
||||
"database:replication": {
|
||||
"type": "boolean",
|
||||
|
||||
Reference in New Issue
Block a user