diff --git a/components/admin/guide-section-editor.tsx b/components/admin/guide-section-editor.tsx
index ac77733..3afe964 100644
--- a/components/admin/guide-section-editor.tsx
+++ b/components/admin/guide-section-editor.tsx
@@ -3379,12 +3379,25 @@ function ExtraCatalogItemsEditor({
-
+ {
+ if (
+ nextKey &&
+ !value.some(
+ (item) => item.kind === kind && item.key === nextKey,
+ )
+ ) {
+ onChange([...value, { kind, key: nextKey }]);
+ }
+ setKey("");
+ }}
+ placeholder={`เลือก${labels[kind]}`}
+ showSelectedImage
+ rarityBackground
+ />
-
@@ -3878,6 +3891,26 @@ function ExtraEditor({ guide, initial, characters, weapons, artifacts }: EditorB
rowIndex,
"backgroundColor",
)}
+ onClick={() => {
+ if (row.backgroundColor !== null) return;
+ setSections(
+ sections.map((item, index) =>
+ index === sectionIndex
+ ? {
+ ...item,
+ rows: item.rows.map((candidate, inner) =>
+ inner === rowIndex
+ ? {
+ ...candidate,
+ backgroundColor: DEFAULT_EXTRA_BACKGROUND_COLOR,
+ }
+ : candidate,
+ ),
+ }
+ : item,
+ ),
+ );
+ }}
onChange={(event) =>
setSections(
sections.map((item, index) =>
@@ -3941,6 +3974,26 @@ function ExtraEditor({ guide, initial, characters, weapons, artifacts }: EditorB
rowIndex,
"textColor",
)}
+ onClick={() => {
+ if (row.textColor !== null) return;
+ setSections(
+ sections.map((item, index) =>
+ index === sectionIndex
+ ? {
+ ...item,
+ rows: item.rows.map((candidate, inner) =>
+ inner === rowIndex
+ ? {
+ ...candidate,
+ textColor: DEFAULT_EXTRA_TEXT_COLOR,
+ }
+ : candidate,
+ ),
+ }
+ : item,
+ ),
+ );
+ }}
onChange={(event) =>
setSections(
sections.map((item, index) =>