This commit is contained in:
Adrian 2025-01-24 21:01:17 -06:00
parent 3be51a106f
commit e9b68f8131
1 changed files with 13 additions and 13 deletions

View File

@ -28,11 +28,11 @@ import { useRevalidator } from "react-router-dom";
import { ShieldCheckIcon } from "@heroicons/react/20/solid"; import { ShieldCheckIcon } from "@heroicons/react/20/solid";
export function SettingsItem({ export function SettingsItem({
title, title,
description, description,
children, children,
className, className,
}: { }: {
title: string; title: string;
description: string | React.ReactNode; description: string | React.ReactNode;
children?: React.ReactNode; children?: React.ReactNode;
@ -40,18 +40,18 @@ export function SettingsItem({
name?: string; name?: string;
}) { }) {
return ( return (
<label className={cx("flex items-center justify-between gap-x-4 rounded", className)}> <label className={cx("flex items-center justify-between gap-x-4 rounded", className)}>
<div className="space-y-0.5"> <div className="space-y-0.5">
<h3 className="text-base font-semibold text-black dark:text-white">{title}</h3> <h3 className="text-base font-semibold text-black dark:text-white">{title}</h3>
<p className="text-sm text-slate-700 dark:text-slate-300">{description}</p> <p className="text-sm text-slate-700 dark:text-slate-300">{description}</p>
</div> </div>
{children ? <div>{children}</div> : null} {children ? <div>{children}</div> : null}
</label> </label>
); );
} }
const defaultEdid = const defaultEdid =
"00ffffffffffff0052620188008888881c150103800000780a0dc9a05747982712484c00000001010101010101010101010101010101023a801871382d40582c4500c48e2100001e011d007251d01e206e285500c48e2100001e000000fc00543734392d6648443732300a20000000fd00147801ff1d000a202020202020017b"; "00ffffffffffff0052620188008888881c150103800000780a0dc9a05747982712484c00000001010101010101010101010101010101023a801871382d40582c4500c48e2100001e011d007251d01e206e285500c48e2100001e000000fc00543734392d6648443732300a20000000fd00147801ff1d000a202020202020017b";
const edids = [ const edids = [
{ {
value: defaultEdid, value: defaultEdid,