Skip to content

Commit 6445ea9

Browse files
committed
[fix] NGO routes compatibility
1 parent e35e3b5 commit 6445ea9

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm test
1+
npm test

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run build
1+
npm run build

components/Navigator/MainNavigator.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,23 @@ const topNavBarMenu = ({ t }: typeof i18n): MenuItem[] => [
4545
{ href: '/license-filter', title: t('license_filter') },
4646
],
4747
},
48-
{
49-
title: t('wiki'),
50-
subs: [
51-
{ href: '/wiki', title: t('wiki') },
52-
{ href: '/policy', title: t('policy') },
53-
],
54-
},
5548
{
5649
title: t('NGO'),
5750
subs: [
58-
{ href: '/ngo', title: t('China_NGO_Map') },
59-
{ href: '/ngo/landscape', title: t('China_NGO_Landscape') },
51+
{ href: '/NGO', title: t('China_NGO_DB') },
6052
{
6153
href: 'https://open-source-bazaar.feishu.cn/wiki/VGrMwiweVivWrHkTcvpcJTjjnoY',
6254
title: t('Open_Source_NGO_plan'),
6355
},
6456
],
6557
},
58+
{
59+
title: t('wiki'),
60+
subs: [
61+
{ href: '/wiki', title: t('wiki') },
62+
{ href: '/policy', title: t('policy') },
63+
],
64+
},
6665
];
6766

6867
export interface MainNavigatorProps {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const OrganizationHomePage: FC<InferGetServerSidePropsType<typeof getServerSideP
2222
return (
2323
<Container className="py-5">
2424
<PageHead title={t('China_NGO_DB')} />
25-
<h1 className="text-center">{t('China_NGO_DB')}</h1>
25+
<h1 className="text-center my-4">{t('China_NGO_DB')} 2.0</h1>
2626

2727
<ZodiacBar {...props} itemOf={year => ({ title: year, link: `/NGO/${year}` })} />
2828
</Container>

0 commit comments

Comments
 (0)