diff --git a/components/admin/copyright/CopyrightEditSheet.tsx b/components/admin/copyright/CopyrightEditSheet.tsx index 9114dba..156e188 100644 --- a/components/admin/copyright/CopyrightEditSheet.tsx +++ b/components/admin/copyright/CopyrightEditSheet.tsx @@ -179,8 +179,8 @@ export default function CopyrightEditSheet(props : Readonly) { setCopyrightEditData({...copyright, default: value ? 0 : 1})} + checked={copyright?.show === 0} + onCheckedChange={(value) => setCopyrightEditData({...copyright, show: value ? 0 : 1})} />
@@ -191,8 +191,8 @@ export default function CopyrightEditSheet(props : Readonly) {
setCopyrightEditData({...copyright, show: value ? 0 : 1})} + checked={copyright?.default === 0} + onCheckedChange={(value) => setCopyrightEditData({...copyright, default: value ? 0 : 1})} />