Skip to content

Commit 901b29f

Browse files
committed
Make breadcrumb objects more consistent (#909)
1 parent d1b56a6 commit 901b29f

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
@@ -27,8 +27,8 @@ const useStyles = makeStyles((theme) => ({
2727

2828
const Collaborate = () => {
2929
const breadCrumbLinks = [
30-
{ name: 'Home', href: '/' },
31-
{ name: 'Collaborate with Us', href: '/support/collaborate' },
30+
{ href: '/', name: 'Home' },
31+
{ href: '/support/collaborate', name: 'Collaborate with Us' },
3232
];
3333
const classes = useStyles();
3434
return (

src/pages/Contact/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const useStyles = makeStyles((theme) => ({
3333
const Contact = () => {
3434
const classes = useStyles();
3535
const breadCrumbLinks = [
36-
{ name: 'Home', href: '/' },
37-
{ name: 'Contact', href: '/about/contact' },
36+
{ href: '/', name: 'Home' },
37+
{ href: '/about/contact', name: 'Contact' },
3838
];
3939

4040
return (

src/pages/Contributors/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ export default function Contributors() {
162162
<Container className={classes.firstSectionWrapper}>
163163
<NavBreadcrumbs
164164
crumbs={[
165-
{ name: 'Home', href: '/' },
166-
{ name: 'Civic Tech Organizations', href: '/organizations/all' },
165+
{ href: '/', name: 'Home' },
166+
{ href: '/organizations/all', name: 'Civic Tech Organizations' },
167167
]}
168168
/>
169169
<Grid container>

src/pages/Faq/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const useStyles = makeStyles({
2121

2222
const Faq = () => {
2323
const breadCrumbLinks = [
24-
{ name: 'Home', href: '/' },
25-
{ name: 'FAQ', href: '/about/faq' },
24+
{ href: '/', name: 'Home' },
25+
{ href: '/about/faq', name: 'FAQ' },
2626
];
2727
const [data, setData] = useState([]);
2828
const [pageNum, setPageNum] = useState(1);

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
@@ -150,8 +150,8 @@ const SocialMediaSection = () => {
150150
export default function ShareTheCti() {
151151
const classes = useStyles();
152152
const breadCrumbLinks = [
153-
{ name: 'Home', href: '/' },
154-
{ name: 'Share the CTI', href: '/support/share' },
153+
{ href: '/', name: 'Home' },
154+
{ href: '/support/share', name: 'Share the CTI' },
155155
];
156156

157157
return (

0 commit comments

Comments
 (0)