mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
## 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
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
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>
|
||
)
|
||
}
|