From 1af0a57cc7c82412ff008890e70023b4e6e194dc Mon Sep 17 00:00:00 2001 From: Roby Date: Thu, 9 May 2024 14:16:17 +0700 Subject: [PATCH] feat: link doc support menu --- src/components/modules/index.ts | 2 +- .../{DocProfileSection.tsx => DocSupportSection.tsx} | 2 +- src/components/modules/sections/NavbarSection.tsx | 1 + src/pages/{docprofile.page.tsx => docsupport.tsx} | 10 +++++----- 4 files changed, 8 insertions(+), 7 deletions(-) rename src/components/modules/sections/{DocProfileSection.tsx => DocSupportSection.tsx} (96%) rename src/pages/{docprofile.page.tsx => docsupport.tsx} (66%) diff --git a/src/components/modules/index.ts b/src/components/modules/index.ts index e42100e..7f18cad 100644 --- a/src/components/modules/index.ts +++ b/src/components/modules/index.ts @@ -5,7 +5,7 @@ export { default as NavbarSection } from './sections/NavbarSection'; export { default as ExperienceSection } from './sections/ExperienceSection'; export { default as FooterSection } from './sections/FooterSection'; export { default as UsesSection } from './sections/UsesSection'; -export { default as DocProfileSection } from './sections/DocProfileSection'; +export { default as DocSupportSection } from './sections/DocSupportSection'; export { default as ErrorSection } from './sections/ErrorSection'; export { default as ActivitySection } from './sections/ActivitySection'; export { default as StorySection } from './sections/StorySection'; diff --git a/src/components/modules/sections/DocProfileSection.tsx b/src/components/modules/sections/DocSupportSection.tsx similarity index 96% rename from src/components/modules/sections/DocProfileSection.tsx rename to src/components/modules/sections/DocSupportSection.tsx index 8c7d711..07cb1a6 100644 --- a/src/components/modules/sections/DocProfileSection.tsx +++ b/src/components/modules/sections/DocSupportSection.tsx @@ -1,6 +1,6 @@ import { Heading, Text } from '@src/components/design-system'; -export default function DocProfileSection() { +export default function DocSupportSection() { return (
Document support 💻 diff --git a/src/components/modules/sections/NavbarSection.tsx b/src/components/modules/sections/NavbarSection.tsx index 55e70a3..b64587f 100644 --- a/src/components/modules/sections/NavbarSection.tsx +++ b/src/components/modules/sections/NavbarSection.tsx @@ -13,6 +13,7 @@ const NavbarSection: React.FC = () => { { id: 5, text: 'Uses', to: '/uses', dropdown: 'Uses' }, { id: 6, text: 'Activity', to: '/activity', dropdown: 'Activity' }, { id: 7, text: 'Blog', to: '/blog', dropdown: 'Blog' }, + { id: 8, text: 'Download Document support', to: '/docsupport', dropdown: 'Document support' }, ]; const router = useRouter(); diff --git a/src/pages/docprofile.page.tsx b/src/pages/docsupport.tsx similarity index 66% rename from src/pages/docprofile.page.tsx rename to src/pages/docsupport.tsx index c6c4558..bd22f3d 100644 --- a/src/pages/docprofile.page.tsx +++ b/src/pages/docsupport.tsx @@ -2,22 +2,22 @@ import { NextPage } from 'next'; import { HomePageLayout } from '@src/layouts/HomePageLayout'; import { Animate, SeoMeta } from '@src/components/design-system/utils'; import { Heading, Text } from '@src/components/design-system'; -import { DocProfileSection } from '@src/components/modules'; +import { DocSupportSection } from '@src/components/modules'; -const DocProfiles: NextPage = () => { +const DocSupports: NextPage = () => { return ( <> - + ); }; -export default DocProfiles; +export default DocSupports;