Skip to content

Commit 0a89ca7

Browse files
committed
[markeng-2532] update navbar to dummy data
1 parent 5cfeffa commit 0a89ca7

File tree

2 files changed

+187
-153
lines changed

2 files changed

+187
-153
lines changed

build/navbarDev.json

Lines changed: 183 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -2,156 +2,190 @@
22
"type": "header",
33
"media": "https://voyager.postman.com/logo/postman-logo-white-horiz.svg",
44
"items": [
5-
{
6-
"title": "Product",
7-
"dropdown": "true",
8-
"subItems": [
9-
{
10-
"title": "What is Postman?",
11-
"url": "https://www.postman.com/product/what-is-postman/"
12-
},
13-
{
14-
"title": "API repository",
15-
"url": "https://www.postman.com/product/api-repository/"
16-
},
17-
{
18-
"title": "Tools",
19-
"url": "https://www.postman.com/product/tools/"
20-
},
21-
{
22-
"title": "Governance",
23-
"url": "https://www.postman.com/product/governance/"
24-
},
25-
{
26-
"title": "Workspaces",
27-
"url": "https://www.postman.com/product/workspaces/"
28-
},
29-
{
30-
"title": "Integrations",
31-
"url": "https://www.postman.com/product/integrations/"
32-
},
33-
{
34-
"title": "Get started for Free →",
35-
"link": "app-cta",
36-
"url": "https://www.postman.com/downloads/"
37-
}
5+
{
6+
"title": "Product",
7+
"dropdown": "true",
8+
"subItems": [
9+
{
10+
"title": "What is Postman?",
11+
"url": "https://www.postman.com/product/what-is-postman/"
12+
},
13+
{
14+
"title": "API Repository",
15+
"url": "https://www.postman.com/product/api-repository/"
16+
},
17+
{
18+
"title": "Tools",
19+
"url": "https://www.postman.com/product/tools/"
20+
},
21+
{
22+
"title": "Governance",
23+
"url": "https://www.postman.com/product/governance/"
24+
},
25+
{
26+
"title": "Workspaces",
27+
"url": "https://www.postman.com/product/workspaces/"
28+
},
29+
{
30+
"title": "Integrations",
31+
"url": "https://www.postman.com/product/integrations/"
32+
},
33+
{
34+
"title": "Get Started Free →",
35+
"link": "app-cta",
36+
"url": "https://www.postman.com/downloads/"
37+
}
38+
]
39+
},
40+
{
41+
"title": "Pricing",
42+
"url": "https://www.postman.com/pricing/"
43+
},
44+
{
45+
"title": "Enterprise",
46+
"isWidthShort": true,
47+
"dropdown": "true",
48+
"columns": [
49+
{
50+
"title": "Learn More",
51+
"subItemsCol": [
52+
{
53+
"title": "Postman Enterprise",
54+
"url": "https://www.postman.com/postman-enterprise/"
55+
},
56+
{
57+
"title": "Customers",
58+
"url": "https://www.postman.com/customers/"
59+
},
60+
{
61+
"title": "Contact Sales",
62+
"url": "https://www.postman.com/company/contact-sales/"
63+
}
3864
]
39-
},
40-
{
41-
"title": "Pricing",
42-
"url": "https://www.postman.com/pricing/"
43-
},
44-
{
45-
"title": "Enterprise",
46-
"dropdown": "true",
47-
"subItems": [
48-
{
49-
"title": "Postman Enterprise",
50-
"url": "https://www.postman.com/postman-enterprise/"
51-
},
52-
{
53-
"title": "Enterprise case studies",
54-
"url": "https://www.postman.com/case-studies/"
55-
},
56-
{
57-
"title": "Contact sales",
58-
"url": "https://www.postman.com/company/contact-sales/"
59-
}
65+
},
66+
{
67+
"title": "Solutions",
68+
"subItemsCol": [
69+
{
70+
"title": "Enterprise Essentials",
71+
"url": "https://www.postman.com/solutions/enterprise-essentials/"
72+
},
73+
{
74+
"title": "Postman for API Test Automation",
75+
"url": "https://www.postman.com/solutions/api-test-automation/"
76+
},
77+
{
78+
"title": "Postman for Internal API Management",
79+
"url": "https://www.postman.com/solutions/internal-api-management/"
80+
}
6081
]
61-
},
62-
{
63-
"title": "Resources and support",
64-
"dropdown": "true",
65-
"columns": [
66-
{
67-
"title": "Learning",
68-
"subItemsCol": [
69-
{
70-
"title": "Docs",
71-
"url": "https://learning.postman.com/docs/getting-started/introduction/"
72-
},
73-
{
74-
"title": "White papers",
75-
"url": "https://www.postman.com/whitepaper/"
76-
},
77-
{
78-
"title": "Breaking changes show",
79-
"url": "https://www.postman.com/events/breaking-changes/"
80-
},
81-
{
82-
"title": "Postman intergalactic",
83-
"url": "https://www.postman.com/events/intergalactic/"
84-
},
85-
{
86-
"title": "Case studies",
87-
"url": "https://www.postman.com/case-studies/"
88-
},
89-
{
90-
"title": "State of the API report",
91-
"url": "https://www.postman.com/state-of-api/"
92-
},
93-
{
94-
"title": "Guide to API-First",
95-
"url": "https://www.postman.com/api-first/"
96-
}
97-
]
98-
},
99-
{
100-
"title": "Community and events",
101-
"subItemsCol": [
102-
{
103-
"title": "Blog",
104-
"url": "https://blog.postman.com/"
105-
},
106-
{
107-
"title": "Community",
108-
"url": "https://www.postman.com/community/"
109-
},
110-
{
111-
"title": "Student program",
112-
"url": "https://www.postman.com/student-program/"
113-
},
114-
{
115-
"title": "Postman for Nonprofits",
116-
"url": "https://www.postman.com/company/nonprofit/"
117-
},
118-
{
119-
"title": "Postman swag",
120-
"url": "https://store.postman.com/"
121-
}
122-
]
123-
},
124-
{
125-
"title": "Support",
126-
"subItemsCol": [
127-
{
128-
"title": "Support Center",
129-
"url": "https://www.postman.com/support/"
130-
},
131-
{
132-
"title": "Reseller support",
133-
"url": "https://www.postman.com/support/resellers-support/"
134-
},
135-
{
136-
"title": "Postman status",
137-
"url": "https://status.postman.com/"
138-
},
139-
{
140-
"title": "Release notes",
141-
"url": "https://www.postman.com/downloads/release-notes/"
142-
},
143-
{
144-
"title": "Contact us",
145-
"url": "https://www.postman.com/company/contact-us/"
146-
}
147-
]
148-
}
149-
82+
}
83+
]
84+
},
85+
{
86+
"title": "Resources and Support",
87+
"dropdown": "true",
88+
"columns": [
89+
{
90+
"title": "Learning",
91+
"subItemsCol": [
92+
{
93+
"title": "Learning Center Docs",
94+
"url": "https://learning.postman.com/docs/getting-started/introduction/"
95+
},
96+
{
97+
"title": "Postman Academy",
98+
"url": "https://academy.postman.com/"
99+
},
100+
{
101+
"title": "White Papers",
102+
"url": "https://www.postman.com/whitepaper/"
103+
},
104+
{
105+
"title": "Breaking Changes Show",
106+
"url": "https://www.postman.com/events/breaking-changes/"
107+
},
108+
{
109+
"title": "Templates",
110+
"url": "https://www.postman.com/templates"
111+
},
112+
{
113+
"title": "Tutorials",
114+
"url": "http://quickstarts.postman.com/"
115+
},
116+
{
117+
"title": "Webinars",
118+
"url": "https://www.postman.com/events/intergalactic/"
119+
},
120+
{
121+
"title": "State of the API Report",
122+
"url": "https://www.postman.com/state-of-api/"
123+
},
124+
{
125+
"title": "Guide to API-First",
126+
"url": "https://www.postman.com/api-first/"
127+
}
150128
]
151-
},
152-
{
153-
"title": "Explore",
154-
"url": "https://www.postman.com/explore?utm_source=postman-website&utm_medium=referral"
155-
}
129+
},
130+
{
131+
"title": "Community and Events",
132+
"subItemsCol": [
133+
{
134+
"title": "Blog",
135+
"url": "https://blog.postman.com/"
136+
},
137+
{
138+
"title": "Community",
139+
"url": "https://www.postman.com/community/"
140+
},
141+
{
142+
"title": "Postman Supernovas",
143+
"url": "https://www.postman.com/company/supernovas-program/"
144+
},
145+
{
146+
"title": "Student Program",
147+
"url": "https://www.postman.com/student-program/"
148+
},
149+
{
150+
"title": "Events",
151+
"url": "https://www.postman.com/events/"
152+
},
153+
{
154+
"title": "Postman Swag",
155+
"url": "https://store.postman.com/"
156+
}
157+
]
158+
},
159+
{
160+
"title": "Support",
161+
"subItemsCol": [
162+
{
163+
"title": "Support Center",
164+
"url": "https://www.postman.com/support/"
165+
},
166+
{
167+
"title": "Reseller Support",
168+
"url": "https://www.postman.com/support/resellers-support/"
169+
},
170+
{
171+
"title": "Postman Status",
172+
"url": "https://status.postman.com/"
173+
},
174+
{
175+
"title": "Release Notes",
176+
"url": "https://www.postman.com/downloads/release-notes/"
177+
},
178+
{
179+
"title": "Contact Us",
180+
"url": "https://www.postman.com/company/contact-us/"
181+
}
182+
]
183+
}
184+
]
185+
},
186+
{
187+
"title": "Explore",
188+
"url": "https://www.postman.com/explore?utm_source=postman-website&utm_medium=referral"
189+
}
156190
]
157-
}
191+
}

src/components/Header/Header.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
CTAButton
1111
} from './HeaderStyles.jsx' ;
1212

13-
import navbarData from '../../../bff-data/navbar.json';
13+
// import navbarData from '../../../bff-data/navbar.json';
1414
import navtopicsdropdownData from '../../../bff-data/navtopicsdropdown.json';
1515
// For local TOPNAVBAR TESTING
1616
import navbarDataLocal from '../../../build/navbarDev.json';
@@ -83,7 +83,7 @@ const Header = (props) => {
8383
const [beta, setBeta] = useState('');
8484
const [cookie, setCookie] = useState('');
8585
const [hidden, setHidden] = useState(true);
86-
const [data, setData] = useState(navbarData);
86+
const [data, setData] = useState(navbarDataLocal);
8787
const [dataDropdown, setDataDropdown] = useState(navtopicsdropdownData);
8888
const [visibleHelloBar] = useState();
8989

@@ -97,8 +97,8 @@ const Header = (props) => {
9797
const navbarKeys = ['items', 'media', 'type'];
9898
const navtopicsdropdownKeys = ['items', 'type'];
9999

100-
if (navbarKeys.every(key => Object.keys(navbarData).includes(key))) {
101-
setData(navbarData)
100+
if (navbarKeys.every(key => Object.keys(navbarDataLocal).includes(key))) {
101+
setData(navbarDataLocal)
102102
} else {
103103
setData(navbarDataLocal)
104104
}

0 commit comments

Comments
 (0)