Skip to content

Commit 9e85e23

Browse files
committed
Make breadcrumb objects more consistent (#909)
1 parent 5af21de commit 9e85e23

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
@@ -160,8 +160,8 @@ export default function Contributors() {
160160
<Container className={classes.firstSectionWrapper}>
161161
<NavBreadcrumbs
162162
crumbs={[
163-
{ name: 'Home', href: '/' },
164-
{ name: 'Civic Tech Organizations', href: '/organizations/all' },
163+
{ href: '/', name: 'Home' },
164+
{ href: '/organizations/all', name: 'Civic Tech Organizations' },
165165
]}
166166
/>
167167
<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
@@ -91,8 +91,8 @@ const IndvOrgPage = ({ match }) => {
9191
// Create the breadcrums on the Individual Organization Page
9292
const parentOrgs = [];
9393
const crumbs = [
94-
{ name: 'Home', href: '/' },
95-
{ name: 'View Organization', href: '/organizations/all' },
94+
{ href: '/', name: 'Home' },
95+
{ href: '/organizations/all', name: 'View Organization' },
9696
{
9797
name: name,
9898
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)