Skip to content

Commit

Permalink
[#68] Changed name and favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-kopecky committed Nov 6, 2021
1 parent 42cd11d commit 9d5795e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap"
rel="stylesheet"
/>
<title>sgov browser</title>
<title>ShowIt</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LargeSearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { Box, Container, Typography } from "@material-ui/core";
import { Box, Container } from "@material-ui/core";
import SearchBar from "./SearchBar";

interface LargeSearchBarProps {
Expand Down
8 changes: 5 additions & 3 deletions src/components/NumberOfResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ import React from "react";
import { Box, Typography } from "@material-ui/core";

const messageHelper = (length: number) => {
if (length === 0) return `Nalezeno ${length} výsledků`;
else if (length === 1) return `Nalezen ${length} výsledek`;
if (length === 1) return `Nalezen ${length} výsledek`;
else if (length <= 4) return `Nalezeny ${length} výsledky`;
else return `Nalezeno ${length} výsledků`;
else if (length <= 50) return `Nalezeno ${length} výsledků`;
else return `Nalezeno více než 50 výsledků`;
};

interface NumberOfResultsProps {
amount: number;
}

const NumberOfResults: React.FC<NumberOfResultsProps> = (props) => {
if (props.amount === 0) return null;
return (
<Box pl={6} color="text.disabled" fontStyle="italic">
<Typography variant="h6">{messageHelper(props.amount)}</Typography>
Expand Down

0 comments on commit 9d5795e

Please sign in to comment.