feat: remove types

This commit is contained in:
trafficlunar 2026-03-25 22:46:34 +00:00
parent 79040a126d
commit e8353b601c
24 changed files with 37 additions and 266 deletions

View file

@ -1,15 +1,13 @@
import { useState } from "react";
import { SwitchMiiInstructions } from "@/types";
import ColorPicker from "../color-picker";
import TypeSelector from "../type-selector";
import NumberInputs from "../number-inputs";
import { useState } from "react";
interface Props {
instructions: React.RefObject<SwitchMiiInstructions>;
}
export default function GlassesTab({ instructions }: Props) {
const [type, setType] = useState(0);
const [ringColor, setRingColor] = useState(0);
const [shadesColor, setShadesColor] = useState(0);
@ -20,19 +18,6 @@ export default function GlassesTab({ instructions }: Props) {
<div className="flex items-center h-8">
<h1 className="font-bold text-xl">Glasses</h1>
</div>
<div className="flex justify-center h-74 mt-auto">
<TypeSelector
hasNoneOption
isGlassesTab
length={58}
type={type}
setType={(i) => {
setType(i);
instructions.current.glasses.type = i;
}}
/>
</div>
</div>
<div className="shrink-0 w-21 pb-3 flex flex-col items-center">
@ -45,7 +30,6 @@ export default function GlassesTab({ instructions }: Props) {
/>
<ColorPicker
color={shadesColor}
disabled={type < 44}
setColor={(i) => {
setShadesColor(i);
instructions.current.glasses.shadesColor = i;