Skip to content

Commit

Permalink
fix: latest eslint warnings in search
Browse files Browse the repository at this point in the history
  • Loading branch information
znarf committed May 8, 2018
1 parent e62023e commit 203d915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/LoadingGrid.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import PropTypes from 'prop-types';

const LoadingGrid = ({ color, size }) => (
<svg width={size} height={size} viewBox="0 0 105 105" xmlns="http://www.w3.org/2000/svg" fill={color}>
<circle cx="12.5" cy="12.5" r="12.5">
<animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
</circle>
<circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
<circle cx="12.5" cy="52.5" r="12.5" fillOpacity=".5">
<animate attributeName="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
</circle>
<circle cx="52.5" cy="12.5" r="12.5">
Expand Down
6 changes: 3 additions & 3 deletions src/pages/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class SearchPage extends React.Component {
<Row className="results-row">
{loading && (
<div className="center">
<LoadingGrid />
<LoadingGrid />
</div>
)}

Expand All @@ -163,9 +163,9 @@ class SearchPage extends React.Component {
</Col>
))}

{ /* TODO: add suggested collectives when the result is empty */ }
{ /* TODO: add suggested collectives when the result is empty */ }
{showCollectives && collectives.length === 0 && (
<p className="center"><em>No collectives found matching your query: "{term}"</em></p>
<p className="center"><em>No collectives found matching your query: &quot;{term}&quot;</em></p>
)}
</Row>
{showCollectives && collectives.length !== 0 && <Row>
Expand Down

0 comments on commit 203d915

Please sign in to comment.