small fixes

This commit is contained in:
2026-03-01 19:48:29 -04:00
parent 364facd9f0
commit 1764adf0a5
15 changed files with 68 additions and 24 deletions

View File

@@ -182,8 +182,12 @@ function RatioBar({
);
}
export function RatioExplorer() {
const [mode, setMode] = useState<RatioMode>("divide");
export function RatioExplorer({
initialMode = "divide",
}: {
initialMode?: RatioMode;
} = {}) {
const [mode, setMode] = useState<RatioMode>(initialMode);
const [partA, setPartA] = useState("2");
const [partB, setPartB] = useState("3");
const [partC, setPartC] = useState("");