Skip to content

Commit

Permalink
Fix UI / UX Page Bottom Path [Change Log] [Privacy] (ChatGPTNextWeb#89)
Browse files Browse the repository at this point in the history
[+] fix(changelog.tsx): change goHome function to goChat function
[+] fix(privacy.tsx): remove cancel button from privacy actions
  • Loading branch information
H0llyW00dzZ committed Nov 13, 2023
1 parent d0798e4 commit 85447ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions app/components/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export function ChangeLog() {
fetchData();
}, []);

const goHome = () => {
navigate(Path.Home);
const goChat = () => {
navigate(Path.Chat);
};

return (
Expand All @@ -88,7 +88,7 @@ export function ChangeLog() {
<IconButton
text={Locale.UI.Close}
icon={<ConfirmIcon />}
onClick={goHome}
onClick={goChat}
bordered
/>
</div>
Expand Down
10 changes: 1 addition & 9 deletions app/components/privacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,12 @@ export function PrivacyPage() {
<div className={styles["privacy-actions"]}>
<div className="window-action-button">
<IconButton
text={Locale.PrivacyPage.Confirm}
text={Locale.UI.Close}
icon={<ConfirmIcon />}
onClick={goChat}
bordered
/>
</div>
<div className="window-action-button">
<IconButton
text={Locale.UI.Cancel}
icon={<CloseIcon />}
bordered
onClick={() => navigate(-1)}
/>
</div>
</div>
)}
</div>
Expand Down

0 comments on commit 85447ee

Please sign in to comment.