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

Commit

Permalink
Fix known bugs in Mobile [UI/UX Page] [Chats] [Tauri Desktop] (#107)
Browse files Browse the repository at this point in the history
[+] fix(chat.tsx): add condition to show pin button only if isApp is true
  • Loading branch information
H0llyW00dzZ authored Nov 15, 2023
1 parent 5456a3b commit 8f1333e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ function _Chat() {
const isMobileScreen = useMobileScreen();
const navigate = useNavigate();
const { pinApp, togglePinApp } = usePinApp();
const isApp = getClientConfig()?.isApp;

// prompt hints
const promptStore = usePromptStore();
Expand Down Expand Up @@ -1271,7 +1272,7 @@ function _Chat() {
}}
/>
</div>
{!showMaxIcon && (
{!showMaxIcon && isApp ? (
<div className="window-action-button">
<IconButton
icon={<PinIcon />}
Expand All @@ -1280,7 +1281,7 @@ function _Chat() {
onClick={togglePinApp} // Call the enablePinApp function
/>
</div>
)}
) : null}
{showMaxIcon && (
<div className="window-action-button">
<IconButton
Expand Down

0 comments on commit 8f1333e

Please sign in to comment.