refactor(admin): migrate section cards onto the shared card primitives

The admin tree hand-rolled its card surfaces and stepped padding at sm:
instead of md:, so it read denser than every other route on a tablet.
Move the sections onto SettingsCard/SettingsCardHeader and the mini-rows
onto ListRow; no behaviour, data, or copy changes.
This commit is contained in:
Marc-André Bombeck committed 2026-07-01 23:44:55 +02:00
1 parent c6dea5eb56
commit 86d80d2c04
23 files changed
+200 -183

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
"use client";
import { Bell, Globe, Key, MessageCircle, Smile } from "lucide-react";
import { SettingsCard } from "@/components/settings/settings-card";
import { SettingsCardHeader } from "@/components/settings/_card-header";
import { useTranslations } from "@/lib/i18n/context";
import { SettingsToggle, useAdminSettings, useUpdateSettings } from "./_shared";
@@ -11,7 +12,7 @@ export function ServicesSection() {
const updateSettings = useUpdateSettings();
return (
<div className="bg-card border-border rounded-xl border p-4 sm:p-6">
<SettingsCard>
<SettingsCardHeader
icon={Globe}
title={t("admin.servicesGlobal")}
@@ -69,6 +70,6 @@ export function ServicesSection() {
disabled={updateSettings.isPending}
/>
</div>
</div>
</SettingsCard>
);
}