mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
Clean
This commit is contained in:
1 parent
7892197d6e
commit
910bd6292a
2 files changed
+1
-5
No files matched your search
-3
@@ -12,7 +12,6 @@ export interface RoleImpersonationPopoverProps {
|
||||
variant?: 'regular' | 'connected-on-right' | 'connected-on-left' | 'connected-on-both'
|
||||
align?: 'center' | 'start' | 'end'
|
||||
disallowAuthenticatedOption?: boolean
|
||||
title?: string
|
||||
}
|
||||
|
||||
export const RoleImpersonationPopover = ({
|
||||
@@ -20,7 +19,6 @@ export const RoleImpersonationPopover = ({
|
||||
variant = 'regular',
|
||||
align = 'end',
|
||||
disallowAuthenticatedOption = false,
|
||||
title,
|
||||
}: RoleImpersonationPopoverProps) => {
|
||||
const state = useRoleImpersonationStateSnapshot()
|
||||
|
||||
@@ -62,7 +60,6 @@ export const RoleImpersonationPopover = ({
|
||||
</PopoverTrigger_Shadcn_>
|
||||
<PopoverContent_Shadcn_ className="p-0 overflow-hidden w-min" side="bottom" align={align}>
|
||||
<RoleImpersonationSelector
|
||||
title={title}
|
||||
serviceRoleLabel={serviceRoleLabel}
|
||||
disallowAuthenticatedOption={disallowAuthenticatedOption}
|
||||
/>
|
||||
|
||||
@@ -18,7 +18,6 @@ export const RoleImpersonationSelector = ({
|
||||
serviceRoleLabel,
|
||||
padded = true,
|
||||
disallowAuthenticatedOption = false,
|
||||
title = 'Database role settings',
|
||||
}: RoleImpersonationSelectorProps) => {
|
||||
const state = useRoleImpersonationStateSnapshot()
|
||||
|
||||
@@ -61,7 +60,7 @@ export const RoleImpersonationSelector = ({
|
||||
return (
|
||||
<>
|
||||
<div className={cn('flex flex-col gap-3', padded ? 'p-5' : 'pb-5')}>
|
||||
<p className="text-foreground text-base">{title}</p>
|
||||
<p className="text-foreground text-base">Database role settings</p>
|
||||
|
||||
<form
|
||||
onSubmit={(e) => {
|
||||
|
||||
Reference in new issue
Block a user