Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Replaced legacy components with new `SettingsCard`, `SettingsField`, and `SettingsToggleRow` for a unified design. - Enhanced `AdminListControls` to support compact mode and improved pagination controls. - Updated various sections including `AiAssistantSection`, `AuthenticationSection`, and `DriveMountOAuthSection` to utilize new components, streamlining the settings interface. - Improved accessibility and user experience across admin settings with clearer labels and hints. - Deprecated old components while maintaining backward compatibility for existing admin sections.
25 lines
580 B
TypeScript
25 lines
580 B
TypeScript
import type { ReactNode } from "react"
|
|
import { SettingsCard } from "@/components/settings/settings-kit"
|
|
|
|
/**
|
|
* @deprecated Utiliser directement `SettingsCard` (`@/components/settings/settings-kit`).
|
|
* Conservé comme alias rétrocompatible pour les sections admin existantes.
|
|
*/
|
|
export function AdminSettingsCard({
|
|
title,
|
|
description,
|
|
hint,
|
|
children,
|
|
}: {
|
|
title: string
|
|
description: ReactNode
|
|
hint?: ReactNode
|
|
children: ReactNode
|
|
}) {
|
|
return (
|
|
<SettingsCard title={title} description={description} hint={hint}>
|
|
{children}
|
|
</SettingsCard>
|
|
)
|
|
}
|