Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add link to docs

Isaiah Hamilton8b05ff1e71e6
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyEditorFooter.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyEditorFooter.tsx
index 184b304e262..f5ddedeb8dc 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyEditorFooter.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyEditorFooter.tsx
@@ -1,5 +1,5 @@
import { FC } from 'react'
-import { Button } from 'ui'
+import { Button, IconExternalLink } from 'ui'
interface Props {
showTemplates: boolean
@@ -8,15 +8,20 @@ interface Props {
}
const PolicyEditorFooter: FC<Props> = ({ showTemplates, onViewTemplates, onReviewPolicy }) => (
- <div className="flex w-full items-center justify-end gap-2 border-t px-6 py-4 dark:border-dark">
- {showTemplates && (
- <Button type="default" onClick={onViewTemplates}>
- View templates
+ <div className="flex justify-between items-center border-t px-6 py-4 dark:border-dark">
+ <a href='https://supabase.com/docs/learn/auth-deep-dive/auth-policies' target="_blank">
+ <Button type='link' icon={<IconExternalLink size={14} strokeWidth={1.5} />}>Documentation</Button>
+ </a>
+ <div className="flex w-full items-center justify-end gap-2">
+ {showTemplates && (
+ <Button type="default" onClick={onViewTemplates}>
+ View templates
+ </Button>
+ )}
+ <Button type="primary" onClick={onReviewPolicy}>
+ Review
</Button>
- )}
- <Button type="primary" onClick={onReviewPolicy}>
- Review
- </Button>
+ </div>
</div>
)