{!isTableLocked && (
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
index 3677574f2b5..fd895d66bda 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
@@ -1,11 +1,11 @@
import type { PostgresPolicy, PostgresTable } from '@supabase/postgres-meta'
import { noop } from 'lodash'
-import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_ } from 'ui'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
-import { WarningIcon } from 'ui'
import Panel from 'components/ui/Panel'
import { useDatabasePoliciesQuery } from 'data/database-policies/database-policies-query'
+import { Info } from 'lucide-react'
+import { cn, Tooltip_Shadcn_, TooltipContent_Shadcn_, TooltipTrigger_Shadcn_ } from 'ui'
import PolicyRow from './PolicyRow'
import PolicyTableRowHeader from './PolicyTableRowHeader'
@@ -47,38 +47,34 @@ const PolicyTableRow = ({
/>
}
>
- {(!table.rls_enabled || policies.length === 0) && (
-
- {table.rls_enabled && policies.length === 0 && (
-
-
-
- Row Level Security is enabled for this table, but no policies are set
-
-
- Select queries may return 0 results.
-
-
- )}
- {!table.rls_enabled && !isLocked && (
-
-
-
- Warning: Row Level Security is disabled. Your table is publicly readable and
- writable.
-
-
- Anyone with the project's anonymous key can modify or delete your data. Enable RLS
- and create access policies to keep your data secure.
-
-
- )}
- {policies.length === 0 && (
-
No policies created yet
+ {!table.rls_enabled && !isLocked && (
+
+
+ Warning:{' '}
+
+ Row Level Security is disabled. Your table is publicly readable and writable.
+
+
+
+
+
+
+ Anyone with the project's anonymous key can modify or delete your data. Enable RLS and
+ create access policies to keep your data secure.
+
+
+