diff --git a/client/src/components/templates/Route.module.scss b/client/src/components/templates/Route.module.scss index 3728aef..828f380 100644 --- a/client/src/components/templates/Route.module.scss +++ b/client/src/components/templates/Route.module.scss @@ -18,12 +18,3 @@ margin-top: $spacer / 2; font-size: $font-size-large; } - -.titleReverse { - composes: title; - color: $brand-grey-light; - - span { - color: $brand-grey-dark; - } -} diff --git a/client/src/components/templates/Route.tsx b/client/src/components/templates/Route.tsx index 38a982b..e11d3cb 100644 --- a/client/src/components/templates/Route.tsx +++ b/client/src/components/templates/Route.tsx @@ -7,14 +7,12 @@ import meta from '../../data/meta.json' const Route = ({ title, description, - titleReverse, wide, children, className }: { title: string description?: string - titleReverse?: boolean children: any wide?: boolean className?: string @@ -29,13 +27,7 @@ const Route = ({
-

- {title} -

+

{title}

{description && (

{ const { totalResults, totalPages, currentPage } = this.state return ( - 0 ? totalResults : '' - } Results for ${this.searchTerm}`} - titleReverse - wide - > + + {totalResults > 0 && ( +

${ + this.searchTerm + }` + }} + /> + )} {this.renderResults()}