Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Refactor UI/UX Page [Chats] [Force Push]
Browse files Browse the repository at this point in the history
[+] chore(chat.tsx): refactor window-action-button rendering logic
  • Loading branch information
H0llyW00dzZ committed Nov 14, 2023
1 parent a50935d commit 2fe592f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1258,14 +1258,16 @@ function _Chat() {
}}
/>
</div>
<div className="window-action-button">
<IconButton
icon={<PinIcon />}
bordered
title={Locale.Chat.Actions.Pin}
onClick={togglePinApp} // Call the enablePinApp function
/>
</div>
{!showMaxIcon && (
<div className="window-action-button">
<IconButton
icon={<PinIcon />}
bordered
title={Locale.Chat.Actions.Pin}
onClick={togglePinApp} // Call the enablePinApp function
/>
</div>
)}
{showMaxIcon && (
<div className="window-action-button">
<IconButton
Expand Down

0 comments on commit 2fe592f

Please sign in to comment.