aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Scoreboard/Scoreboard.js4
-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;