Skip to content

Commit 7e23c7f

Browse files
committed
display ban time
1 parent 998f578 commit 7e23c7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/userLookup.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ const UserNote = (props: { note: PlayerNote; displayNoted?: boolean }) => {
886886
isConfidential,
887887
adminRank,
888888
isBan,
889+
banTime,
889890
noteCategory,
890891
notedPlayerCkey,
891892
notingAdminCkey,
@@ -910,7 +911,7 @@ const UserNote = (props: { note: PlayerNote; displayNoted?: boolean }) => {
910911
<div className="flex flex-col">
911912
<div className="flex flex-col md:flex-row gap-1">
912913
{tag}
913-
<div className="text-wrap">{text}</div>
914+
<div className="text-wrap">{isBan && banTime ? `Banned for ${banTime}: `: ""}{text}</div>
914915
</div>
915916
<div className="italic flex flex-row justify-end gap-1">
916917
{displayNoted && (

0 commit comments

Comments
 (0)