added a link to the ntfy docs below text input
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
|||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
import { UserOptionalDefaults, UserOptionalDefaultsSchema } from "@repo/db/zod";
|
import { UserOptionalDefaults, UserOptionalDefaultsSchema } from "@repo/db/zod";
|
||||||
import { Bell, Plane } from "lucide-react";
|
import { Bell, Plane } from "lucide-react";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
export const ProfileForm = ({ user }: { user: User }) => {
|
export const ProfileForm = ({ user }: { user: User }) => {
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
@@ -368,16 +369,29 @@ export const PilotForm = ({ user }: { user: User }) => {
|
|||||||
<Plane className="w-5 h-5" /> Pilot
|
<Plane className="w-5 h-5" /> Pilot
|
||||||
</h2>
|
</h2>
|
||||||
<div className="content-center">
|
<div className="content-center">
|
||||||
<label className="floating-label w-full mt-5">
|
<label className="floating-label w-full">
|
||||||
<span className="text-lg flex items-center gap-2">
|
<span className="text-lg flex items-center gap-2">
|
||||||
<Bell /> NTFY room
|
<Bell /> NTFY room
|
||||||
</span>
|
</span>
|
||||||
<input
|
<input
|
||||||
placeholder="erhalte eine Benachrichtigung aufs Handy über NTFY"
|
placeholder="Erhalte eine Benachrichtigung auf dein Handy über NTFY"
|
||||||
className="input input-bordered w-full"
|
className="input input-bordered w-full"
|
||||||
{...form.register("settingsNtfyRoom")}
|
{...form.register("settingsNtfyRoom")}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<p className="label mt-2 w-full">
|
||||||
|
<Link
|
||||||
|
href="https://docs.virtualairrescue.com/docs/Leitstelle/App-Alarmierung#download"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="link link-hover link-primary"
|
||||||
|
>
|
||||||
|
Hier
|
||||||
|
</Link>
|
||||||
|
findest du mehr Informationen!
|
||||||
|
</p>
|
||||||
|
|
||||||
{form.formState.errors.settingsNtfyRoom && (
|
{form.formState.errors.settingsNtfyRoom && (
|
||||||
<p className="text-error">{form.formState.errors.settingsNtfyRoom.message}</p>
|
<p className="text-error">{form.formState.errors.settingsNtfyRoom.message}</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user