+
Personality
diff --git a/src/components/mii/list/index.tsx b/src/components/mii/list/index.tsx
index 50a8c8c..ebe5530 100644
--- a/src/components/mii/list/index.tsx
+++ b/src/components/mii/list/index.tsx
@@ -197,7 +197,7 @@ export default async function MiiList({ searchParams, userId, inLikesPage }: Pro
`/mii/${mii.id}/image?type=image${index}`),
]}
/>
diff --git a/src/components/submit-form/mii-editor/tabs/misc.tsx b/src/components/submit-form/mii-editor/tabs/misc.tsx
index 1518e9b..655091c 100644
--- a/src/components/submit-form/mii-editor/tabs/misc.tsx
+++ b/src/components/submit-form/mii-editor/tabs/misc.tsx
@@ -133,7 +133,11 @@ export default function HeadTab({ instructions }: Props) {
{
- setPersonality((p) => ({ ...p, [key]: i }));
+ setPersonality((p) => {
+ const updated = { ...p, [key]: i };
+ instructions.current.personality = updated;
+ return updated;
+ });
instructions.current.personality = personality;
}}
/>
diff --git a/src/components/submit-form/mii-editor/tabs/other.tsx b/src/components/submit-form/mii-editor/tabs/other.tsx
index 0dde7f6..6a4b1e2 100644
--- a/src/components/submit-form/mii-editor/tabs/other.tsx
+++ b/src/components/submit-form/mii-editor/tabs/other.tsx
@@ -21,13 +21,13 @@ const TABS: { name: keyof SwitchMiiInstructions["other"]; length: number }[] = [
export default function OtherTab({ instructions }: Props) {
const [tab, setTab] = useState(0);
+ const [isFlipped, setIsFlipped] = useState(false);
// One type/color state per tab
const [types, setTypes] = useState(Array(TABS.length).fill(0));
const [colors, setColors] = useState(Array(TABS.length).fill(0));
const currentTab = TABS[tab];
- const isColorPickerDisabled = currentTab.colorsDisabled ? currentTab.colorsDisabled.includes(types[tab]) : false;
const setType = (value: number) => {
setTypes((prev) => {
@@ -78,8 +78,26 @@ export default function OtherTab({ instructions }: Props) {