Skip to content

Commit f175561

Browse files
committed
Make breadcrumb objects more consistent (#909)
1 parent b6a510b commit f175561

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

src/pages/About/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import Grid from '@material-ui/core/Grid';
1212

1313
const About = () => {
1414
const breadCrumbLinks = [
15-
{ name: 'Home', href: '/' },
16-
{ name: 'About', href: '/about' },
15+
{ href: '/', name: 'Home' },
16+
{ href: '/about', name: 'About' },
1717
];
1818

1919
const classes = useStyles();

src/pages/Collaborate/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { Typography } from '@material-ui/core';
1212

1313
const Collaborate = () => {
1414
const breadCrumbLinks = [
15-
{ name: 'Home', href: '/' },
16-
{ name: 'Collaborate with Us', href: '/support/collaborate' },
15+
{ href: '/', name: 'Home' },
16+
{ href: '/support/collaborate', name: 'Collaborate with Us' },
1717
];
1818

1919
return (

src/pages/Contact/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { GenericHeaderSection } from '../../components/';
88

99
const Contact = () => {
1010
const breadCrumbLinks = [
11-
{ name: 'Home', href: '/' },
12-
{ name: 'Contact', href: '/about/contact' },
11+
{ href: '/', name: 'Home' },
12+
{ href: '/about/contact', name: 'Contact' },
1313
];
1414
const handlePageHeight = () => {
1515
window.parent.scrollTo(0, 0);

src/pages/Contributors/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ export default function Contributors() {
208208
<Container className={classes.firstSectionWrapper}>
209209
<NavBreadcrumbs
210210
crumbs={[
211-
{ name: 'Home', href: '/' },
212-
{ name: 'Civic Tech Organizations', href: '/organizations/all' },
211+
{ href: '/', name: 'Home' },
212+
{ href: '/organizations/all', name: 'Civic Tech Organizations' },
213213
]}
214214
/>
215215
<Grid container>

src/pages/Faq/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const Faq = () => {
4343
);
4444

4545
const breadCrumbLinks = [
46-
{ name: 'Home', href: '/' },
47-
{ name: 'FAQ', href: '/about/faq' },
46+
{ href: '/', name: 'Home' },
47+
{ href: '/about/faq', name: 'FAQ' },
4848
];
4949

5050
const getFaqData = async (currentQuery, resetState) => {

src/pages/IndvOrganization/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ const IndvOrgPage = ({ match }) => {
102102
// Create the breadcrums on the Individual Organization Page
103103
const parentOrgs = [];
104104
const crumbs = [
105-
{ name: 'Home', href: '/' },
106-
{ name: 'View Organization', href: '/organizations/all' },
105+
{ href: '/', name: 'Home' },
106+
{ href: '/organizations/all', name: 'View Organization' },
107107
{
108108
name: name,
109109
href:

src/pages/RadicalCollaboration/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import PhotoCardMobile from './PhotoCardMobile';
1010
import { GenericHeaderSection } from '../../components/';
1111
const RadicalCollaboration = () => {
1212
const breadCrumbLinks = [
13-
{ name: 'Home', href: '/' },
14-
{ name: 'Collaborate with Us', href: '/support' },
13+
{ href: '/', name: 'Home' },
14+
{ href: '/support', name: 'Collaborate with Us' },
1515
];
1616
const Images = [
1717
{

src/pages/Share/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ const SocialMediaSection = () => {
155155
export default function ShareTheCti() {
156156
const classes = useStyles();
157157
const breadCrumbLinks = [
158-
{ name: 'Home', href: '/' },
159-
{ name: 'Share the CTI', href: '/support/share' },
158+
{ href: '/', name: 'Home' },
159+
{ href: '/support/share', name: 'Share the CTI' },
160160
];
161161

162162
return (

0 commit comments

Comments
 (0)