Skip to content

Commit

Permalink
feat(next/web): lazy load userLabelOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Nov 21, 2023
1 parent 431a572 commit 75f4831
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions next/web/src/App/Admin/Tickets/Ticket/TicketDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ function TicketInfo({
onChangeSubscribed,
disabled,
}: TicketInfoProps) {
const userLabelOverlay = getConfig('ticketDetail.userLabelOverlay');

return (
<PageHeader
className="border-b"
Expand Down Expand Up @@ -250,7 +248,10 @@ function TicketInfo({
</Descriptions.Item>
{author && (
<Descriptions.Item label="创建者">
<Popover placement="bottom" content={userLabelOverlay?.(author)}>
<Popover
placement="bottom"
content={() => getConfig('ticketDetail.userLabelOverlay')?.(author)}
>
<UserLabel user={author} displayUsername />
</Popover>
</Descriptions.Item>
Expand Down

0 comments on commit 75f4831

Please sign in to comment.