Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #142 from democracyworks/breadcrumb-fix
Browse files Browse the repository at this point in the history
[ui] simple change to remove warning about breadcrumbs
  • Loading branch information
Chris Thompson committed May 14, 2019
2 parents 18bda12 + 05b08ed commit 8931e09
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/component/DOS/Contest/DetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ interface BreadcrumbProps {

const Breadcrumbs = ({ contest }: BreadcrumbProps) => (
<ul className='pt-breadcrumbs'>
<li><Breadcrumb text={ <Link to='/sos'>SoS</Link> } /></li>
<li><Breadcrumb text={ <Link to='/sos/contest'>Contests</Link> } /></li>
<li><Breadcrumb text='SoS' href='/sos' /></li>
<li><Breadcrumb text='Contests' href='/sos/contest'/></li>
<li><Breadcrumb className='pt-breadcrumb-current' text={ contest.name } /></li>
</ul>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/component/DOS/Contest/OverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import counties from 'corla/data/counties';

const Breadcrumbs = () => (
<ul className='pt-breadcrumbs'>
<li><Breadcrumb text={ <Link to='/sos'>SoS</Link> } /></li>
<li><Breadcrumb text='SoS' href='/sos' /></li>
<li><Breadcrumb className='pt-breadcrumb-current' text='Contests' /></li>
</ul>
);
Expand Down
4 changes: 2 additions & 2 deletions client/src/component/DOS/County/DetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ interface BreadcrumbProps {

const Breadcrumbs = ({ county }: BreadcrumbProps) => (
<ul className='pt-breadcrumbs'>
<li><Breadcrumb text={ <Link to='/sos'>SoS</Link> } /></li>
<li><Breadcrumb text={ <Link to='/sos/county'>County</Link> } /></li>
<li><Breadcrumb text='SoS' href='/sos' /></li>
<li><Breadcrumb text='County' href='/sos/county' /></li>
<li><Breadcrumb className='pt-breadcrumb-current' text={ county.name } /></li>
</ul>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/component/DOS/County/OverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { formatCountyASMState } from 'corla/format';

const Breadcrumbs = () => (
<ul className='pt-breadcrumbs'>
<li><Breadcrumb text={ <Link to='/sos'>SoS</Link> } /></li>
<li><Breadcrumb text='SoS' href='/sos' /></li>
<li><Breadcrumb className='pt-breadcrumb-current' text='Counties' /></li>
</ul>
);
Expand Down

0 comments on commit 8931e09

Please sign in to comment.