Fehler Melden Knopf hinzugefügt

This commit is contained in:
nocnico
2025-07-19 00:29:39 +02:00
parent 85fdfb3bb1
commit a755e45697
3 changed files with 24 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import dynamic from "next/dynamic";
import { Chat } from "../../_components/left/Chat";
import { Report } from "../../_components/left/Report";
import { SituationBoard } from "_components/left/SituationBoard";
import { BugReport } from "_components/left/BugReport";
const Map = dynamic(() => import("../../_components/map/Map"), { ssr: false });
@@ -22,6 +23,9 @@ const DispatchPage = () => {
<div className="mt-2">
<Report />
</div>
<div className="mt-2">
<BugReport />
</div>
</div>
<div className="absolute left-0 top-19/20 transform -translate-y-1/2 pl-4 z-999999">
<div className="flex items-center justify-between gap-4">

View File

@@ -12,6 +12,7 @@ import { getConnectedAircraftsAPI } from "_querys/aircrafts";
import { checkSimulatorConnected } from "@repo/shared-components";
import { SimConnectionAlert } from "(app)/pilot/_components/SimConnectionAlert";
import { SettingsBoard } from "_components/left/SettingsBoard";
import { BugReport } from "_components/left/BugReport";
const Map = dynamic(() => import("_components/map/Map"), {
ssr: false,
@@ -37,6 +38,9 @@ const PilotPage = () => {
<div className="mt-2">
<Report />
</div>
<div className="mt-2">
<BugReport />
</div>
</div>
<div className="flex w-2/3 h-full">
<div className="relative flex flex-1 h-full">

View File

@@ -0,0 +1,16 @@
import { Bug } from "lucide-react";
export const BugReport = () => {
return (
<div className="indicator">
<a
className="btn btn-soft btn-sm btn-warning tooltip tooltip-right"
data-tip="Fehler Melden"
href="https://discord.com/channels/1077269395019141140/1395892524404576367"
target="_blank"
>
<Bug className="w-4 h-4" />
</a>
</div>
);
};