fix: mobile dropdown not closing on click, minor changes

This commit is contained in:
Ash Gray 2024-08-10 13:58:30 +02:00
parent d4246c36ef
commit 3f1a58d786
No known key found for this signature in database
GPG Key ID: 3D90D031C2E38D17
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"
}
}
},

View File

@ -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>

View File

@ -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 && (
<>