Discord account Linkage, penalty update
This commit is contained in:
@@ -8,6 +8,7 @@ import { deleteBookingAPI, getBookingsAPI } from "(app)/_querys/bookings";
|
||||
import { Button } from "@repo/shared-components";
|
||||
import { formatTimeRange } from "../../helper/timerange";
|
||||
import toast from "react-hot-toast";
|
||||
import Link from "next/link";
|
||||
|
||||
interface BookingTimelineModalProps {
|
||||
isOpen: boolean;
|
||||
@@ -298,7 +299,17 @@ export const BookingTimelineModal = ({
|
||||
? "LST"
|
||||
: booking.Station.bosCallsignShort || booking.Station.bosCallsign}
|
||||
</span>
|
||||
<span className="text-sm font-medium">{booking.User.fullName}</span>
|
||||
|
||||
{currentUser?.permissions.includes("ADMIN_USER") ? (
|
||||
<Link
|
||||
href={`/admin/user/${booking.User.publicId}`}
|
||||
className="link link-hover text-xs opacity-70"
|
||||
>
|
||||
{booking.User.fullName}
|
||||
</Link>
|
||||
) : (
|
||||
<span className="text-sm font-medium">{booking.User.fullName}</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="text-right">
|
||||
|
||||
Reference in New Issue
Block a user