Fix Admin Links, Piloten können nur mit Dispos schreiben
This commit is contained in:
@@ -33,7 +33,7 @@ const page = () => {
|
||||
header: "Aktionen",
|
||||
cell: ({ row }) => (
|
||||
<div className="flex items-center gap-1">
|
||||
<Link href={`/admin/event/${row.original.id}`}>
|
||||
<Link href={`/admin/station/${row.original.id}`}>
|
||||
<button className="btn btn-sm">Edit</button>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -51,11 +51,11 @@ import Link from "next/link";
|
||||
import { ColumnDef } from "@tanstack/react-table";
|
||||
import { Error } from "_components/Error";
|
||||
import { useSession } from "next-auth/react";
|
||||
import { setStandardName } from "(app)/../../helper/discord";
|
||||
import { setStandardName } from "../../../../../../helper/discord";
|
||||
import { penaltyColumns } from "(app)/admin/penalty/columns";
|
||||
import { addPenalty, editPenaltys } from "(app)/admin/penalty/actions";
|
||||
import { reportColumns } from "(app)/admin/report/columns";
|
||||
import { sendMailByTemplate } from "(app)/../../helper/mail";
|
||||
import { sendMailByTemplate } from "../../../../../../helper/mail";
|
||||
|
||||
interface ProfileFormProps {
|
||||
user: User;
|
||||
|
||||
@@ -45,7 +45,7 @@ const AdminUserPage = () => {
|
||||
header: "Aktionen",
|
||||
cell: ({ row }) => (
|
||||
<div className="flex items-center gap-1">
|
||||
<Link href={`/admin/event/${row.original.id}`}>
|
||||
<Link href={`/admin/user/${row.original.id}`}>
|
||||
<button className="btn btn-sm">Anzeigen</button>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -223,7 +223,7 @@ export const SocialForm = ({
|
||||
const router = useRouter();
|
||||
|
||||
const schema = z.object({
|
||||
vatsimCid: z.number().min(1000).max(9999999),
|
||||
vatsimCid: z.string(),
|
||||
});
|
||||
|
||||
type IFormInput = z.infer<typeof schema>;
|
||||
@@ -293,12 +293,10 @@ export const SocialForm = ({
|
||||
<PaperPlaneIcon /> VATSIM-CID
|
||||
</span>
|
||||
<input
|
||||
type="number"
|
||||
type="text"
|
||||
className="input input-bordered w-full"
|
||||
defaultValue={user.vatsimCid as number | undefined}
|
||||
{...form.register("vatsimCid", {
|
||||
valueAsNumber: true,
|
||||
})}
|
||||
defaultValue={user.vatsimCid || undefined}
|
||||
{...form.register("vatsimCid")}
|
||||
/>
|
||||
</label>
|
||||
<p
|
||||
|
||||
Reference in New Issue
Block a user