Link question author name to their admin profile

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 10:53:01 +05:00
parent a290b9495c
commit 3b8a1ce7ee
@@ -1,6 +1,7 @@
"use client"; "use client";
import { useState, useEffect, useCallback, useRef } from "react"; import { useState, useEffect, useCallback, useRef } from "react";
import Link from "next/link";
import { linkify } from "@/lib/linkify"; import { linkify } from "@/lib/linkify";
interface FileAttachment { interface FileAttachment {
@@ -283,7 +284,14 @@ export function QuestionSplitView({ currentUserId }: { currentUserId: string })
{detail.title} {detail.title}
</p> </p>
<p className="text-xs" style={{ color: "var(--muted-foreground)" }}> <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", { {new Date(detail.createdAt).toLocaleDateString("ru", {
day: "numeric", day: "numeric",
month: "long", month: "long",