Skip to content

Commit 0197ff2

Browse files
committed
Make breadcrumb objects more consistent (#909)
1 parent 68e9d9c commit 0197ff2

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

src/pages/About.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const useStyles = makeStyles((theme) => ({
4141

4242
const About = () => {
4343
const breadCrumbLinks = [
44-
{ name: 'Home', href: '/' },
45-
{ name: 'About', href: '/about' },
44+
{ href: '/', name: 'Home' },
45+
{ href: '/about', name: 'About' },
4646
];
4747

4848
const classes = useStyles();

src/pages/Contributors/index.js

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

src/pages/IndvOrganization/index.js

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

src/pages/RadicalCollaboration/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/RadicalCollaboration/Contact/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const useStyles = makeStyles((theme) => ({
3636
const Contact = () => {
3737
const classes = useStyles();
3838
const breadCrumbLinks = [
39-
{ name: 'Home', href: '/' },
40-
{ name: 'Contact', href: '/about/contact' },
39+
{ href: '/', name: 'Home' },
40+
{ href: '/about/contact', name: 'Contact' },
4141
];
4242

4343
return (

src/pages/RadicalCollaboration/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/RadicalCollaboration/Share/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ const SocialMediaSection = () => {
157157
export default function ShareTheCti() {
158158
const classes = useStyles();
159159
const breadCrumbLinks = [
160-
{ name: 'Home', href: '/' },
161-
{ name: 'Share the CTI', href: '/support/share' },
160+
{ href: '/', name: 'Home' },
161+
{ href: '/support/share', name: 'Share the CTI' },
162162
];
163163

164164
return (

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
{

0 commit comments

Comments
 (0)