diff --git a/frontend/public/tutorial/switch/adding-mii/modded/filter.png b/frontend/public/tutorial/switch/adding-mii/modded/filter.png deleted file mode 100644 index b7f28c1..0000000 Binary files a/frontend/public/tutorial/switch/adding-mii/modded/filter.png and /dev/null differ diff --git a/frontend/public/tutorial/switch/adding-mii/modded/success.png b/frontend/public/tutorial/switch/adding-mii/modded/success.png deleted file mode 100644 index 96ea8d4..0000000 Binary files a/frontend/public/tutorial/switch/adding-mii/modded/success.png and /dev/null differ diff --git a/frontend/src/components/mii/list/index.tsx b/frontend/src/components/mii/list/index.tsx index 1b2e798..ebe8a8f 100644 --- a/frontend/src/components/mii/list/index.tsx +++ b/frontend/src/components/mii/list/index.tsx @@ -80,93 +80,87 @@ export default function MiiList({ parentPage, userId, bypassCache }: Props) { -

Not finding what you're looking for? Try including controversial Miis in filters.

+
+ {data.miis.map((mii) => ( +
+
+ {mii.in_queue && ( +
+ + In Queue +
+ )} + {mii.needsFixing && ( +
+ + Needs Fixing +
+ )} +
- {data.miis.length !== 0 ? ( -
- {data.miis.map((mii) => ( -
-
- {mii.in_queue && ( -
- - In Queue -
- )} - {mii.needsFixing && ( -
- - Needs Fixing -
- )} + + mii image + + +
+
+ + {mii.name} + +
+ {mii.platform === "SWITCH" ? ( + + ) : ( + + )} +
- - mii image - - -
-
- - {mii.name} +
+ {mii.tags.map((tag: string) => ( + + {tag} -
- {mii.platform === "SWITCH" ? ( - - ) : ( - - )} + ))} +
+ +
+ + + {!userId && ( + + @{mii.user?.name} + + )} + + {userId && Number($session?.user?.id) == userId && ( +
+ + + +
-
- -
- {mii.tags.map((tag: string) => ( - - {tag} - - ))} -
- -
- - - {!userId && ( - - @{mii.user?.name} - - )} - - {userId && Number($session?.user?.id) == userId && ( -
- - - - -
- )} -
+ )}
- ))} -
- ) : ( -

No Miis found!

- )} +
+ ))} +
) : ( <> -

No Miis found, has the server died?

-

Try refreshing!

+

No Miis found, has the server died?

+

Please try refreshing first!

)} diff --git a/frontend/src/components/tutorial/index.tsx b/frontend/src/components/tutorial/index.tsx index 7b1aca8..36a970b 100644 --- a/frontend/src/components/tutorial/index.tsx +++ b/frontend/src/components/tutorial/index.tsx @@ -161,19 +161,17 @@ export default function Tutorial({ tutorials, isOpen, setIsOpen }: Props) { {slide.text} ) : ( -

{slide.text}

+

{slide.text}

)} - {slide.imageSrc && ( - step image - )} + step image )}
diff --git a/frontend/src/components/tutorial/switch-add-mii.tsx b/frontend/src/components/tutorial/switch-add-mii.tsx index 3f4e7d2..97f5497 100644 --- a/frontend/src/components/tutorial/switch-add-mii.tsx +++ b/frontend/src/components/tutorial/switch-add-mii.tsx @@ -3,11 +3,7 @@ import { createPortal } from "react-dom"; import { Icon } from "@iconify/react"; import Tutorial from "."; -interface Props { - hasShareMiiFile: boolean; -} - -export default function SwitchAddMiiTutorialButton({ hasShareMiiFile }: Props) { +export default function SwitchAddMiiTutorialButton() { const [isOpen, setIsOpen] = useState(false); return ( @@ -26,37 +22,20 @@ export default function SwitchAddMiiTutorialButton({ hasShareMiiFile }: Props) { thumbnail: "/tutorial/switch/adding-mii/modded/thumbnail.png", steps: [ { type: "start" }, - ...(hasShareMiiFile - ? [ - { - text: "1. Download ShareMii - click here for link", - link: "https://gamebanana.com/tools/22305", - imageSrc: "/tutorial/switch/adding-mii/modded/step1.jpg", - }, - { - text: "2. Download the .ltd file, it is above the instructions next to all the other buttons", - imageSrc: "/tutorial/switch/adding-mii/modded/step2.png", - }, - { - text: "3. Follow the instructions by the creator (scroll down to importing) - click here for link", - link: "https://docs.google.com/document/d/e/2PACX-1vRSaPbTe0pijDSETzdeGhvQ7zYHlx9Qnxn7WdUqG9cveZYyk405A0LSbYnl8ygTNI_ZZqMrIZLeHenr/pub", - imageSrc: "/tutorial/switch/adding-mii/modded/step3.jpg", - }, - ] - : [ - { text: "This Mii does not have a ShareMii file. You can filter the search to only show Miis that do: (go to next step)" }, - { - text: "1. Go back to the search page, open the filters and press 'Has ShareMii File'", - imageSrc: "/tutorial/switch/adding-mii/modded/filter.png", - }, - { - text: "2. The search will automatically update to show only Miis with ShareMii files", - }, - { - text: "3. Open the tutorial again on those Miis to find out how to use the ShareMii file. (You should see this as the first step)", - imageSrc: "/tutorial/switch/adding-mii/modded/success.png", - }, - ]), + { + text: "1. Download ShareMii - click here for link", + link: "https://gamebanana.com/tools/22305", + imageSrc: "/tutorial/switch/adding-mii/modded/step1.jpg", + }, + { + text: "2. Download the .ltd file, it is above the instructions next to all the other buttons", + imageSrc: "/tutorial/switch/adding-mii/modded/step2.png", + }, + { + text: "3. Follow the instructions by the creator (scroll down to importing) - click here for link", + link: "https://docs.google.com/document/d/e/2PACX-1vRSaPbTe0pijDSETzdeGhvQ7zYHlx9Qnxn7WdUqG9cveZYyk405A0LSbYnl8ygTNI_ZZqMrIZLeHenr/pub", + imageSrc: "/tutorial/switch/adding-mii/modded/step3.jpg", + }, { type: "finish" }, ], }, diff --git a/frontend/src/pages/mii.tsx b/frontend/src/pages/mii.tsx index 03c39e0..b62f2b6 100644 --- a/frontend/src/pages/mii.tsx +++ b/frontend/src/pages/mii.tsx @@ -388,7 +388,7 @@ export default function MiiPage() { Report - {mii.platform === "THREE_DS" ? : } + {mii.platform === "THREE_DS" ? : }
{/* Instructions */}