diff --git a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
index 43b57533bf0..f235598abe9 100644
--- a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
+++ b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
@@ -8,7 +8,6 @@ import * as z from 'zod'
import { useParams } from 'common'
import AlertError from 'components/ui/AlertError'
-import { FormSection, FormSectionContent, FormSectionLabel } from 'components/ui/Forms/FormSection'
import { ToggleSpendCapButton } from 'components/ui/ToggleSpendCapButton'
import { UpgradePlanButton } from 'components/ui/UpgradePlanButton'
import { useDatabasePoliciesQuery } from 'data/database-policies/database-policies-query'
@@ -31,6 +30,7 @@ import {
FormField_Shadcn_,
FormMessage_Shadcn_,
Input_Shadcn_,
+ PrePostTab,
Switch,
} from 'ui'
import { Admonition } from 'ui-patterns'
@@ -155,67 +155,58 @@ export const RealtimeSettings = () => {
- {isDisablingRealtime
- ? 'Clients will no longer be able to connect to your project’s realtime service once saved'
- : isEnablingRealtime
- ? "Clients will be able to connect to your project's realtime service again once saved"
- : isRealtimeDisabled
- ? 'You will need to enable it to continue using Realtime'
- : null}
-
+ {isDisablingRealtime
+ ? 'Clients will no longer be able to connect to your project’s realtime service once saved'
+ : isEnablingRealtime
+ ? "Clients will be able to connect to your project's realtime service again once saved"
+ : isRealtimeDisabled
+ ? 'You will need to enable it to continue using Realtime'
+ : null}
+
- Private mode is {isSettingToPrivate ? 'being ' : ''}
- enabled, but no RLS policies exists on the{' '}
-
+ Private mode is {isSettingToPrivate ? 'being ' : ''}
+ enabled, but no RLS policies exists on the{' '}
+
- {isDisablingRealtime
- ? 'Realtime service will be disabled'
- : isEnablingRealtime
- ? 'Realtime service will be re-enabled'
- : isRealtimeDisabled
- ? 'Realtime service is disabled'
- : null}
-
-
+ {isDisablingRealtime
+ ? 'Realtime service will be disabled'
+ : isEnablingRealtime
+ ? 'Realtime service will be re-enabled'
+ : isRealtimeDisabled
+ ? 'Realtime service is disabled'
+ : null}
+
+
- realtime.messages
- {' '}
- table. No messages will be received by users.
-
+ realtime.messages
+ {' '}
+ table. No messages will be received by users.
+
- {isFreePlan - ? 'Upgrade to the Pro plan first to disable spend cap' - : 'You may adjust this setting in the organization billing settings'} -
-+ {isFreePlan + ? 'Upgrade to the Pro plan first to disable spend cap' + : 'You may adjust this setting in the organization billing settings'} +
+- {isFreePlan - ? 'Upgrade to the Pro plan first to disable spend cap' - : 'You may adjust this setting in the organization billing settings'} -
-+ {isFreePlan + ? 'Upgrade to the Pro plan first to disable spend cap' + : 'You may adjust this setting in the organization billing settings'} +
+- {isFreePlan - ? 'Upgrade to the Pro plan first to disable spend cap' - : 'You may adjust this setting in the organization billing settings'} -
-+ {isFreePlan + ? 'Upgrade to the Pro plan first to disable spend cap' + : 'You may adjust this setting in the organization billing settings'} +
+