generated from goitacademy/react-homework-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(components): update structure for improved readability 😁
- Loading branch information
Showing
5 changed files
with
80 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import { Container, Row, Col, Alert } from 'react-bootstrap'; | ||
|
||
export const SearchResultInfo = ({ searchQuery, totalHits }) => ( | ||
<Container> | ||
<Row className="justify-content-center text-center"> | ||
<Col xs="auto"> | ||
<Alert variant="primary"> | ||
Showing <span className="fw-bold"> {totalHits}</span> results for | ||
<span className="fw-bold"> {searchQuery}</span> | ||
</Alert> | ||
</Col> | ||
</Row> | ||
</Container> | ||
<Row> | ||
<Container> | ||
<Row className="justify-content-center text-center"> | ||
<Col xs="auto"> | ||
<Alert variant="primary"> | ||
Showing <span className="fw-bold"> {totalHits}</span> results for | ||
<span className="fw-bold"> {searchQuery}</span> | ||
</Alert> | ||
</Col> | ||
</Row> | ||
</Container> | ||
</Row> | ||
); |