mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-03-28 11:13:16 +00:00
Fixes/adds: - ability to edit instructions - center indicator on range inputs - birthdays
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import { createPortal } from "react-dom";
|
|
import Tutorial from ".";
|
|
|
|
export default function SwitchSubmitTutorialButton() {
|
|
const [isOpen, setIsOpen] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<button type="button" onClick={() => setIsOpen(true)} className="text-sm text-orange-400 cursor-pointer underline-offset-2 hover:underline">
|
|
How to?
|
|
</button>
|
|
|
|
{isOpen &&
|
|
createPortal(
|
|
<Tutorial
|
|
tutorials={[
|
|
{
|
|
title: "Submitting",
|
|
steps: [
|
|
{
|
|
text: "1. Press X to open the menu, then select 'Residents'",
|
|
imageSrc: "/tutorial/switch/submitting/step1.jpg",
|
|
},
|
|
{
|
|
text: "2. Find the Mii you want to submit and edit it",
|
|
imageSrc: "/tutorial/switch/submitting/step2.jpg",
|
|
},
|
|
{
|
|
text: "3. Press Y to open the features list, then take a screenshot and upload to this submit form",
|
|
imageSrc: "/tutorial/switch/submitting/step3.jpg",
|
|
},
|
|
{
|
|
text: "4. Adding Mii colors and settings is recommended. All instructions are optional; for values like height or distance, use the number of button clicks (positive for buttons on right, negative for buttons on left)",
|
|
imageSrc: "/tutorial/switch/step4.jpg",
|
|
},
|
|
{ type: "finish" },
|
|
],
|
|
},
|
|
]}
|
|
isOpen={isOpen}
|
|
setIsOpen={setIsOpen}
|
|
/>,
|
|
document.body,
|
|
)}
|
|
</>
|
|
);
|
|
}
|