Skip to content

Commit

Permalink
Re-organize & cleanup menus
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMtnDrifter committed Mar 11, 2024
1 parent ccfdd68 commit b96fcca
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 38 deletions.
8 changes: 2 additions & 6 deletions app/[locale]/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default function Header() {
const navigationTranslations: NavigationMenuItems = {
newsName: tNav("newsName"),
aboutName: tNav("aboutName"),
resourcesName: tNav("resourcesName"),
communityName: tNav("communityName"),
supportName: tNav("supportName"),
contributeName: tNav("contributeName"),
Expand All @@ -29,10 +28,6 @@ export default function Header() {
partners: tNav("about.partners"),
sponsors: tNav("about.sponsors"),
},
resources: {
docs: tNav("resources.docs"),
gpgKeyInfo: tNav("resources.gpgKeyInfo"),
},
community: {
forums: tNav("community.forums"),
mailing: tNav("community.mailing"),
Expand All @@ -41,8 +36,9 @@ export default function Header() {
calendar: tNav("community.calendar"),
},
support: {
supportProviders: tNav("support.supportProviders"),
docs: tNav("support.docs"),
submitBug: tNav("support.submitBug"),
supportProviders: tNav("support.supportProviders"),
},
contribute: {
contribute: tNav("contribute.contribute"),
Expand Down
16 changes: 5 additions & 11 deletions app/[locale]/components/header/DesktopNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ const DesktopNavigation = ({ translations: t }: DesktopNavigationProps) => {
href="/about/partners"
/>
</NavList>
<NavList name={t.resourcesName}>
<NavListItem
title={t.resources.docs}
href="https://docs.rockylinux.org"
/>
<NavListItem
title={t.resources.gpgKeyInfo}
href="/resources/gpg-key-info"
/>
</NavList>
<NavList name={t.communityName}>
<NavListItem
title={t.community.forums}
Expand All @@ -79,13 +69,17 @@ const DesktopNavigation = ({ translations: t }: DesktopNavigationProps) => {
</NavList>
<NavList name={t.supportName}>
<NavListItem
title={t.support.supportProviders}
title={t.support.docs}
href="/support/support-providers"
/>
<NavListItem
title={t.support.submitBug}
href="https://bugs.rockylinux.org"
/>
<NavListItem
title={t.support.supportProviders}
href="/support/support-providers"
/>
</NavList>
<NavList name={t.contributeName}>
<NavListItem
Expand Down
18 changes: 6 additions & 12 deletions app/[locale]/components/header/MobileNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@ const MobileNavigation = ({
href="/about/partners"
/>
</NavList>
<NavList name={t.resourcesName}>
<NavListItem
title={t.resources.docs}
href="https://docs.rockylinux.org"
/>
<NavListItem
title={t.resources.gpgKeyInfo}
href="/resources/gpg-key-info"
/>
</NavList>
<NavList name={t.communityName}>
<NavListItem
title={t.community.forums}
Expand All @@ -118,13 +108,17 @@ const MobileNavigation = ({
</NavList>
<NavList name={t.supportName}>
<NavListItem
title={t.support.supportProviders}
href="/support/support-providers"
title={t.support.docs}
href="https://docs.rockylinux.org"
/>
<NavListItem
title={t.support.submitBug}
href="https://bugs.rockylinux.org"
/>
<NavListItem
title={t.support.supportProviders}
href="/support/support-providers"
/>
</NavList>
<NavList name={t.contributeName}>
<NavListItem
Expand Down
8 changes: 2 additions & 6 deletions app/[locale]/components/header/NavigationTypes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export interface NavigationMenuItems {
newsName: string;
aboutName: string;
resourcesName: string;
communityName: string;
supportName: string;
contributeName: string;
Expand All @@ -12,10 +11,6 @@ export interface NavigationMenuItems {
sponsors: string;
partners: string;
};
resources: {
docs: string;
gpgKeyInfo: string;
};
community: {
forums: string;
mailing: string;
Expand All @@ -24,8 +19,9 @@ export interface NavigationMenuItems {
calendar: string;
};
support: {
supportProviders: string;
docs: string;
submitBug: string;
supportProviders: string;
};
contribute: {
contribute: string;
Expand Down
6 changes: 3 additions & 3 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"partners": "Partners"
},
"resources": {
"docs": "Documentation",
"gpgKeyInfo": "GPG Key Info"
},
"community": {
Expand All @@ -36,8 +35,9 @@
"calendar": "Calendar"
},
"support": {
"supportProviders": "Commercial Support",
"submitBug": "Submit Bug"
"docs": "Documentation",
"submitBug": "Submit Bug",
"supportProviders": "Commercial Support"
},
"contribute": {
"contribute": "Contributing Guide",
Expand Down

0 comments on commit b96fcca

Please sign in to comment.