Skip to content

Commit b9d0b95

Browse files
committed
fixed the LanguageSwitcherButton, deleted an unused file
1 parent e05ff97 commit b9d0b95

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

components/StevenSignal/HeaderSection/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ const Header = ({ title, linkDescription }: { title: string, linkDescription: st
3636
<ChevronDownIcon />
3737
</Flex>
3838
</MenuButton>
39-
<MenuList borderRadius="none">
39+
<MenuList borderRadius="none" p="0">
4040
{i18nextConfig.i18n.locales.map((locale, index) => {
4141
if (locale === currentLocale) return null
4242
return (
43-
<MenuItem key={index}>
43+
<MenuItem key={index} p="0">
4444
<LanguageSwitchLink locale={locale} key={locale} />
4545
</MenuItem>
4646
)

components/shared/LanguageSwitcherLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const LanguageSwitchLink: React.FC<LanguageSwitchLinkProps> = ({ locale, ...rest
3030
}
3131

3232
return (
33-
<Link href={href} onClick={() => languageDetector.cache?.(locale)} style={{ width: '100%' }}>
33+
<Link href={href} onClick={() => languageDetector.cache?.(locale)} style={{ width: '100%', padding: '8px 10px' }}>
3434
{locale.toUpperCase()}
35-
</Link>
35+
</Link >
3636
);
3737
};
3838

pages/[locale]/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ const Homepage = () => {
3030

3131
export default Homepage
3232

33-
const getStaticProps = makeStaticProps(['404', 'common'])
33+
const getStaticProps = makeStaticProps(['404'])
3434
export { getStaticPaths, getStaticProps }

pages/some-page.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)