From 814030654b90dc506f7191e2fff9f0fb0f181fc7 Mon Sep 17 00:00:00 2001 From: "Rosy.iso" Date: Tue, 10 Mar 2026 11:53:19 +0100 Subject: [PATCH] make name color editor accept a title and description --- src/app/features/settings/account/NameColorEditor.tsx | 9 ++++----- src/app/features/settings/account/Profile.tsx | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/features/settings/account/NameColorEditor.tsx b/src/app/features/settings/account/NameColorEditor.tsx index df7ce7de..d5b5e8b5 100644 --- a/src/app/features/settings/account/NameColorEditor.tsx +++ b/src/app/features/settings/account/NameColorEditor.tsx @@ -5,11 +5,13 @@ import { SettingTile } from '$components/setting-tile'; import { HexColorPickerPopOut } from '$components/HexColorPickerPopOut'; type NameColorEditorProps = { + title: string; + description?: string; current?: string; onSave: (color: string | null) => void; }; -export function NameColorEditor({ current, onSave }: NameColorEditorProps) { +export function NameColorEditor({ title, description, current, onSave }: NameColorEditorProps) { const stripQuotes = (str?: string) => { if (!str) return ''; // to solve the silly tuwunel @@ -48,10 +50,7 @@ export function NameColorEditor({ current, onSave }: NameColorEditorProps) { return ( - + handleSaveField('moe.sable.app.name_color', color)} />