-
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.
Merge pull request #89 from opendata-mvcr/feature/83-empty-term
- Loading branch information
Showing
6 changed files
with
61 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico"/> | ||
<meta | ||
name="viewport" | ||
content="minimum-scale=1, initial-scale=1, width=device-width" | ||
name="viewport" | ||
content="minimum-scale=1, initial-scale=1, width=device-width" | ||
/> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<meta name="theme-color" content="#000000"/> | ||
<meta name="description" content="Browsing Semantic Government Vocabulary"/> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png"/> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"/> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"/> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<title>ShowIt</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from "react"; | ||
import { Box, Typography } from "@mui/material"; | ||
import { ReactComponent as NoData } from "../assets/no_data.svg"; | ||
|
||
const EmptyTerm: React.FC = () => { | ||
return ( | ||
<Box style={{ textAlign: "center" }} mt={4}> | ||
<NoData style={{ maxHeight: 280, maxWidth: "80%", marginBottom: 30 }} /> | ||
<Box> | ||
<Typography variant="h4"> | ||
Víc informací bohužel není k dispozici | ||
</Typography> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
export default EmptyTerm; |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { TermInterface } from "../api/data/terms"; | ||
|
||
//Checks whether term consists only of information which is displayed in the header (TermPage) | ||
export const isTermEmpty = (term: TermInterface) => { | ||
return ( | ||
!term.parentTerms.length && | ||
!term.subTerms.length && | ||
!term.definition && | ||
!term.source | ||
); | ||
}; |