feat: metadata images for switch platform

also some other changes
This commit is contained in:
trafficlunar 2026-02-28 12:33:36 +00:00
parent e31141ea39
commit 5995afe3db
5 changed files with 71 additions and 50 deletions

View file

@ -173,15 +173,13 @@ export default function SubmitForm() {
}
// Convert QR code to JS (3DS)
if (platform === "THREE_DS") {
let conversion: { mii: Mii; tomodachiLifeMii: ThreeDsTomodachiLifeMii };
try {
conversion = convertQrCode(qrBytes);
setMiiPortraitUri(conversion.mii.studioUrl({ width: 512 }));
} catch (error) {
setError(error instanceof Error ? error.message : String(error));
return;
}
let conversion: { mii: Mii; tomodachiLifeMii: ThreeDsTomodachiLifeMii };
try {
conversion = convertQrCode(qrBytes);
setMiiPortraitUri(conversion.mii.studioUrl({ width: 512 }));
} catch (error) {
setError(error instanceof Error ? error.message : String(error));
return;
}
// Generate a new QR code for aesthetic reasons

View file

@ -23,6 +23,7 @@ export default function GlassesTab({ instructions }: Props) {
<div className="flex justify-center h-74 mt-auto">
<TypeSelector
hasNoneOption
length={50}
type={type}
setType={(i) => {