mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
feat: metadata images for switch platform
also some other changes
This commit is contained in:
parent
e31141ea39
commit
5995afe3db
5 changed files with 71 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue