From 9206c4a814d1c6bbf07c3042a21c7adfb56399f1 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 21 Apr 2025 18:53:28 +0100 Subject: [PATCH] [frontend] pathfinder endType selection --- src/routes/calc/path.tsx | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/src/routes/calc/path.tsx b/src/routes/calc/path.tsx index 71ffdf0..dff4dca 100644 --- a/src/routes/calc/path.tsx +++ b/src/routes/calc/path.tsx @@ -73,6 +73,7 @@ function TextPath(props: { path: PathStep[] }) { function PathFinder() { const [start, setStart] = useSessionStorage("start", "E.G1G.6GD"); + const [endType, setEndType] = useSessionStorage("endType", "star") const [end, setEnd] = useSessionStorage("end", "Nod"); const [jump, setJump] = useSessionStorage("jump", 80); const [optimize, setOptimize] = useSessionStorage( @@ -104,7 +105,7 @@ function PathFinder() { - + - +
System 1From system
System 2 + + - setEnd(e.target.value)} - /> + {endType == "star" ? + setEnd(e.target.value)} + /> + : + }