Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

コンポーネントとファイル名をrenameした #331

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/Contests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import ContestsTemplate from "../templates/Contests.js";
import ContestList from "../templates/ContestList.js";
import { contestsOperations, contestsSelectors } from "../state/ducks/contests";

const ContestsContainer = ({ currentContests, upcomingContests, recentContests, isfetched, fetchContests }) => {
Expand All @@ -14,7 +14,7 @@ const ContestsContainer = ({ currentContests, upcomingContests, recentContests,
}, [endpoint, fetchContests, isfetched]);

return (
<ContestsTemplate
<ContestList
currentContestLists={currentContests}
upcomingContestLists={upcomingContests}
recentContestLists={recentContests}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/SubmitStatusState.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import SubmitStatusState from "../templates/SubmitStatusStatu";
import SubmissionStatus from "../templates/SubmissionStatus";

export default function SubmitStatusDetail() {
return <SubmitStatusState />;
return <SubmissionStatus />;
}
4 changes: 2 additions & 2 deletions src/templates/Contests.js → src/templates/ContestList.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const useStyles = makeStyles(theme => ({
},
}));

export default function Contests(props) {
export default function ContestList(props) {
const classes = useStyles();

const currentContestLists = props.currentContestLists;
Expand All @@ -38,7 +38,7 @@ export default function Contests(props) {
);
}

Contests.propTypes = {
ContestList.propTypes = {
currentContestLists: PropTypes.array,
upcomingContestLists: PropTypes.array,
recentContestLists: PropTypes.array,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const useStyles = makeStyles(theme => ({
},
}));

export default function SubmitStatusState() {
export default function SubmissionStatus() {
const classes = useStyles();
const { submitId } = useParams();

Expand Down