diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-01-05 01:57:42 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-01-05 01:57:42 +0300 |
commit | 57a8a5dccbc267543799fd01192b2a1534e53c64 (patch) | |
tree | ffd15705c39394257c3f77ccb453441cb77cd400 /src/components | |
parent | 048f277ef7831b8f1a02c5e6590fb8087862b7fc (diff) | |
download | chrono-cube-ui-57a8a5dccbc267543799fd01192b2a1534e53c64.tar.gz |
Isolate SolutionCard component
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Scoreboard/Scoreboard.js | 4 | ||||
-rw-r--r-- | src/components/SolutionCard/SolutionCard.js (renamed from src/components/Scoreboard/Solution.js) | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Scoreboard/Scoreboard.js b/src/components/Scoreboard/Scoreboard.js index 1235f9a..399a017 100644 --- a/src/components/Scoreboard/Scoreboard.js +++ b/src/components/Scoreboard/Scoreboard.js @@ -3,7 +3,7 @@ import React, { useEffect, useState } from 'react'; import { Container, Typography } from "@material-ui/core"; import { get } from "../../requests"; -import Solution from "./Solution"; +import SolutionCard from "../SolutionCard/SolutionCard"; const Scoreboard = () => { @@ -22,7 +22,7 @@ const Scoreboard = () => { return ( <Container maxWidth="sm"> <Typography variant="h3" style={{textAlign: 'center'}}>Scoreboard</Typography> - {solutions.map(solution => (<Solution solution={solution}/>))} + {solutions.map(solution => (<SolutionCard solution={solution}/>))} </Container> ); }; diff --git a/src/components/Scoreboard/Solution.js b/src/components/SolutionCard/SolutionCard.js index 1d54b04..41d61c1 100644 --- a/src/components/Scoreboard/Solution.js +++ b/src/components/SolutionCard/SolutionCard.js @@ -34,7 +34,7 @@ const useStyles = makeStyles(theme => ({ })); -const Solution = ({ solution }) => { +const SolutionCard = ({ solution }) => { const classes = useStyles(); const author = solution.author? solution.author : 'anonymous'; @@ -68,4 +68,4 @@ const Solution = ({ solution }) => { ) }; -export default Solution; +export default SolutionCard; |