Skip to content

Commit

Permalink
Header. Rename Offerings to Pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
AmsterGet committed Feb 10, 2025
1 parent c3fedea commit 58167b5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
20 changes: 14 additions & 6 deletions src/components/Layout/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,26 @@ import {
CrossIcon,
ArrowIconMobile,
} from './icons';
import { MENU_INITIAL_STATE, MENU_ORDER } from './constants';
import {
MENU_INITIAL_STATE,
MENU_ORDER,
OFFERINGS,
LEARN,
COMMUNITY,
PRODUCT,
SOLUTIONS,
} from './constants';

import './Navigation.scss';

const { Panel } = Collapse;

const menuItems = {
product: { Component: ProductMenu },
solutions: { Component: SolutionsMenu },
offerings: { Component: OfferingsMenu },
learn: { Component: LearnMenu },
community: { Component: CommunityMenu },
[PRODUCT]: { Component: ProductMenu },
[SOLUTIONS]: { Component: SolutionsMenu },
[OFFERINGS]: { Component: OfferingsMenu },
[LEARN]: { Component: LearnMenu },
[COMMUNITY]: { Component: CommunityMenu },
};

const getBlocksWith = createBemBlockBuilder(['top-header']);
Expand Down
18 changes: 12 additions & 6 deletions src/components/Layout/Navigation/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
export const PRODUCT = 'product';
export const SOLUTIONS = 'solutions';
export const OFFERINGS = 'pricing';
export const LEARN = 'learn';
export const COMMUNITY = 'community';

export const MENU_INITIAL_STATE = {
product: false,
solutions: false,
offerings: false,
learn: false,
community: false,
[PRODUCT]: false,
[SOLUTIONS]: false,
[OFFERINGS]: false,
[LEARN]: false,
[COMMUNITY]: false,
};

export interface MenuProps {
Expand All @@ -12,4 +18,4 @@ export interface MenuProps {
isDesktop?: boolean;
}

export const MENU_ORDER = ['product', 'solutions', 'offerings', 'learn', 'community'];
export const MENU_ORDER = [PRODUCT, SOLUTIONS, OFFERINGS, LEARN, COMMUNITY];

0 comments on commit 58167b5

Please sign in to comment.