From 108c32dde398c0a81083fc2db2929792fe9bfbe6 Mon Sep 17 00:00:00 2001 From: "joel@joellee.org" Date: Fri, 19 May 2023 01:00:28 +0800 Subject: [PATCH] fix: add radio button group --- .../interfaces/Auth/AutoSchemaForm.tsx | 57 ++++++++++++------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/studio/components/interfaces/Auth/AutoSchemaForm.tsx b/studio/components/interfaces/Auth/AutoSchemaForm.tsx index 75daad1fdfc..d24d6eb7e88 100644 --- a/studio/components/interfaces/Auth/AutoSchemaForm.tsx +++ b/studio/components/interfaces/Auth/AutoSchemaForm.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react' import { observer } from 'mobx-react-lite' import { boolean, number, object, string } from 'yup' import { PermissionAction } from '@supabase/shared-types/out/constants' -import { Button, Form, Input, IconEye, IconEyeOff, InputNumber, Toggle } from 'ui' +import { Button, Form, Input, IconEye, IconEyeOff, InputNumber, Toggle, Radio } from 'ui' import { useStore, checkPermissions } from 'hooks' import { @@ -150,6 +150,22 @@ const AutoSchemaForm = observer(() => { disabled={!canUpdateConfig} /> {values.SECURITY_CAPTCHA_ENABLED && ( + <> + + + + { /> } /> + )} - - {values.REFRESH_TOKEN_ROTATION_ENABLED && ( - seconds} - disabled={!canUpdateConfig} - /> - )} + + {values.REFRESH_TOKEN_ROTATION_ENABLED && ( + seconds} + disabled={!canUpdateConfig} + /> + )}