From a0e1ef72d0a3f927395c74f3a310d19623b77b2c Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Thu, 9 Jan 2020 09:42:20 +0300 Subject: Use Window to markup Scoreboard page --- src/components/Scoreboard/Scoreboard.js | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'src/components') diff --git a/src/components/Scoreboard/Scoreboard.js b/src/components/Scoreboard/Scoreboard.js index a101a5b..2d9bb80 100644 --- a/src/components/Scoreboard/Scoreboard.js +++ b/src/components/Scoreboard/Scoreboard.js @@ -7,6 +7,7 @@ import { get } from "../../requests"; import SmartList from "../SmartList/SmartList"; import SolutionCard from "../SolutionCard/SolutionCard"; import Loading from "../Loading/Loading"; +import Window from "../Window/Window"; const useStyles = makeStyles(theme => ({ @@ -49,17 +50,20 @@ const Scoreboard = () => { ) }; - - return (solutions.length === 0) ? -
- -
- : - + return ( + + { solutions.length === 0 && +
+ +
+ } + +
+ ) }; -- cgit v1.2.3