Files
supabase/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx
T
Gildas Garcia c6fc456910 chore: cleanup duplicate exports studio (#47387)
## Problem

Knip reports many duplicate exports (both named and default). Besides,
we're moving away from default exports and even have an eslint rule to
enforce it on new code.

## Solution

- Cleanup those exports
- Update imports when necessary

No functional changes. If it builds, it's fine
2026-06-29 15:46:16 +02:00

40 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Card, CardContent } from 'ui'
import {
PageSection,
PageSectionContent,
PageSectionDescription,
PageSectionMeta,
PageSectionSummary,
PageSectionTitle,
} from 'ui-patterns/PageSection'
import { ResetDbPasswordDialog } from './ResetDbPasswordDialog'
export const ResetDbPassword = ({ disabled = false }) => {
return (
<PageSection id="database-password">
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Database password</PageSectionTitle>
<PageSectionDescription>Used for direct Postgres connections</PageSectionDescription>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<Card>
<CardContent className="flex flex-row items-center gap-x-2 justify-between">
<div className="space-y-0.5">
<h3 className="text-sm text-foreground">Reset database password</h3>
<p className="text-sm text-foreground-light text-balance">
The database password isn’t viewable after creation. Resetting it will break any
existing connections.
</p>
</div>
<ResetDbPasswordDialog disabled={disabled} />
</CardContent>
</Card>
</PageSectionContent>
</PageSection>
)
}