add units to zone edit pane

This commit is contained in:
Josh Hawkins 2024-12-09 11:54:58 -06:00
parent 0c78fbd32c
commit 9065771cdf

View File

@ -596,7 +596,13 @@ export default function ZoneEditPane({
name="lineA" name="lineA"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Line A distance</FormLabel> <FormLabel>
Line A distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
</FormLabel>
<FormControl> <FormControl>
<Input <Input
{...field} {...field}
@ -612,7 +618,13 @@ export default function ZoneEditPane({
name="lineB" name="lineB"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Line B distance</FormLabel> <FormLabel>
Line B distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
</FormLabel>
<FormControl> <FormControl>
<Input <Input
{...field} {...field}
@ -628,7 +640,13 @@ export default function ZoneEditPane({
name="lineC" name="lineC"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Line C distance</FormLabel> <FormLabel>
Line C distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
</FormLabel>
<FormControl> <FormControl>
<Input <Input
{...field} {...field}
@ -644,7 +662,13 @@ export default function ZoneEditPane({
name="lineD" name="lineD"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Line D distance</FormLabel> <FormLabel>
Line D distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
</FormLabel>
<FormControl> <FormControl>
<Input <Input
{...field} {...field}