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

@@ -227,8 +227,12 @@ function ColumnArithmetic({
);
}
export function DecimalArithmeticExplorer() {
const [op, setOp] = useState<DecOp>("add");
export function DecimalArithmeticExplorer({
initialOperation = "add",
}: {
initialOperation?: DecOp;
} = {}) {
const [op, setOp] = useState<DecOp>(initialOperation);
const [aInput, setAInput] = useState("12.45");
const [bInput, setBInput] = useState("3.7");
const [error, setError] = useState("");