diff options
author | Anton Dubik <anton.dubik33@gmail.com> | 2020-01-04 01:19:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-04 01:19:50 +0300 |
commit | 1a3c02e2fb77d7cc253d05b5b198c1fe75279926 (patch) | |
tree | c044f7cd6c2b2a829e09372859f25efafe54b440 /src/components/Scoreboard/Scoreboard.js | |
parent | e41a613afa7fba8c89c6d88a3607bfc6e5081bb7 (diff) | |
parent | a7b17c6f460031c8caf0b3f6173b817b4a6cc8fa (diff) | |
download | chrono-cube-ui-1a3c02e2fb77d7cc253d05b5b198c1fe75279926.tar.gz |
Merge pull request #14 from Eug-VS/theme
Create theme and style existing components
Diffstat (limited to 'src/components/Scoreboard/Scoreboard.js')
-rw-r--r-- | src/components/Scoreboard/Scoreboard.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/Scoreboard/Scoreboard.js b/src/components/Scoreboard/Scoreboard.js index 1ebca90..1235f9a 100644 --- a/src/components/Scoreboard/Scoreboard.js +++ b/src/components/Scoreboard/Scoreboard.js @@ -1,5 +1,6 @@ -import React, {useEffect, useState} from 'react'; +import React, { useEffect, useState } from 'react'; +import { Container, Typography } from "@material-ui/core"; import { get } from "../../requests"; import Solution from "./Solution"; @@ -19,10 +20,11 @@ const Scoreboard = () => { return ( - <div> - { solutions.map(solution => <Solution solution={solution}/>) } - </div> + <Container maxWidth="sm"> + <Typography variant="h3" style={{textAlign: 'center'}}>Scoreboard</Typography> + {solutions.map(solution => (<Solution solution={solution}/>))} + </Container> ); }; -export default Scoreboard;
\ No newline at end of file +export default Scoreboard; |