Skip to content

Commit

Permalink
fix: mobile dropdown not closing on click, minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlimes committed Aug 10, 2024
1 parent d4246c3 commit 3f1a58d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Website

## TODO
- Remove jank to get the image component to work
- Add rss meta tag once it's implemented
- Update images in showcase

Expand Down
3 changes: 2 additions & 1 deletion locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"about": "About the project",
"faq": "Frequently asked questions",
"blog": "Our latest updates, condensed",
"progress": "Check the project progress and goals"
"progress": "Check the project progress and goals",
"donate": "Gain cool perks by supporting the project"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/HeaderDropdowns/HeaderDropdown2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function HeaderDropdown2({ locale, mobile }: { locale: any; mobil
</div>
<div>
<Title element="h4">{locale.nav.donate}</Title>
<p>💜</p> {/* TODO: add better caption to locale */}
<p>{locale.nav.dropdown.captions.donate}</p>
</div>
<ArrowRight size={28} className={styles.arrow} />
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AccountWidget from '../AccountDropdowns/AccountWidget';

export default function MobileDropdown({ locale, setMobileOpen, mobileLocaleOpen, localeSetter, localeList }) {
return (
<div className={styles.mobileDropdown}>
<div className={styles.mobileDropdown} onClick={() => setMobileOpen(false)}>
{mobileLocaleOpen && <LocaleDropdown mobile={true} localeSetter={localeSetter} localeList={localeList} />}
{!mobileLocaleOpen && (
<>
Expand Down

0 comments on commit 3f1a58d

Please sign in to comment.