This commit is contained in:
Sabda Yagra 2026-02-12 12:58:28 +07:00
commit f191f0edc1
1 changed files with 4 additions and 10 deletions

View File

@ -26,6 +26,7 @@ type CategoryDetail = {
isActive: boolean; isActive: boolean;
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;
createdByFullname : string;
}; };
type CurrentUser = { type CurrentUser = {
@ -125,14 +126,7 @@ export default function CategoriesDetailForm() {
{/* Creator */} {/* Creator */}
<div> <div>
<Label>Created By</Label> <Label>Created By</Label>
<Input <Input readOnly value={detail.createdByFullname || "-"} />
readOnly
value={
currentUser && currentUser.id === detail.createdById
? currentUser.fullname || currentUser.username
: `User ID ${detail.createdById}`
}
/>
{/* <Input {/* <Input
type="text" type="text"