Link question author name to their admin profile
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useState, useEffect, useCallback, useRef } from "react";
|
||||
import Link from "next/link";
|
||||
import { linkify } from "@/lib/linkify";
|
||||
|
||||
interface FileAttachment {
|
||||
@@ -283,7 +284,14 @@ export function QuestionSplitView({ currentUserId }: { currentUserId: string })
|
||||
{detail.title}
|
||||
</p>
|
||||
<p className="text-xs" style={{ color: "var(--muted-foreground)" }}>
|
||||
{detail.user.name} ·{" "}
|
||||
<Link
|
||||
href={`/admin/users/${detail.user.id}`}
|
||||
className="hover:underline"
|
||||
style={{ color: "var(--foreground)", fontWeight: 600 }}
|
||||
>
|
||||
{detail.user.name}
|
||||
</Link>{" "}
|
||||
·{" "}
|
||||
{new Date(detail.createdAt).toLocaleDateString("ru", {
|
||||
day: "numeric",
|
||||
month: "long",
|
||||
|
||||
Reference in New Issue
Block a user