Skip to content

Commit

Permalink
:rotating: Use Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
frinyvonnick committed Apr 8, 2019
1 parent b1537b8 commit 3a38c62
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/components/SearchCat/SearchCat.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { Fragment, useState } from "react";
import "./SearchCat.css";
import "./SearchCatForm";
import SearchCatForm from "./SearchCatForm";
import React, {Fragment, useState} from 'react';
import './SearchCat.css';
import './SearchCatForm';
import SearchCatForm from './SearchCatForm';

function SearchCat(props) {
const [displayed, setDisplayed] = useState(false)
const toggleForm = () => setDisplayed(!displayed)
const [displayed, setDisplayed] = useState(false);
const toggleForm = () => setDisplayed(!displayed);

return (
<Fragment>
Expand All @@ -14,10 +14,7 @@ function SearchCat(props) {
</button>
{displayed && (
<div className="SearchCat-overlay" onClick={toggleForm}>
<div
className="SearchCat-content"
onClick={e => e.stopPropagation()}
>
<div className="SearchCat-content" onClick={e => e.stopPropagation()}>
<SearchCatForm
limit={100}
excludedCats={props.excludedCats}
Expand All @@ -30,7 +27,7 @@ function SearchCat(props) {
</div>
)}
</Fragment>
)
);
}

export default SearchCat;

0 comments on commit 3a38c62

Please sign in to comment.