small fixes
This commit is contained in:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user