This commit is contained in:
Joshen Lim committed 2026-04-24 18:04:18 +08:00
1 parent 7892197d6e
commit 910bd6292a
2 files changed
+1 -5

No files matched your search

@@ -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) => {