Add Online Icon to MissionForm Rettungsmittel selection, disable measurement tools from Context Menu
This commit is contained in:
@@ -158,6 +158,7 @@ export const ContextMenu = () => {
|
||||
style={{ transform: "translateY(-50%)" }}
|
||||
onMouseEnter={() => setRulerHover(true)}
|
||||
onMouseLeave={() => setRulerHover(false)}
|
||||
disabled
|
||||
>
|
||||
<Ruler size={20} />
|
||||
</button>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import React, { useEffect } from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { BellRing, BookmarkPlus } from "lucide-react";
|
||||
import { BellRing, BookmarkPlus, Radio } from "lucide-react";
|
||||
import { Select } from "_components/Select";
|
||||
import { KEYWORD_CATEGORY, Mission, missionType, Prisma } from "@repo/db";
|
||||
import {
|
||||
@@ -260,7 +260,13 @@ export const MissionForm = () => {
|
||||
isMulti
|
||||
form={form}
|
||||
options={stations?.map((s) => ({
|
||||
label: s.bosCallsign,
|
||||
label: (
|
||||
/* TODO: Only show radio icon if station online and sort online stations to the top */
|
||||
<span className="flex items-center gap-2">
|
||||
<Radio className="text-success" size={15} />
|
||||
{s.bosCallsign}
|
||||
</span>
|
||||
),
|
||||
value: s.id,
|
||||
}))}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user