diff --git a/src/App.tsx b/src/App.tsx index 38f222b513bb8261b97dea00fe0df2dcec8967ab..c56000d0086334d0d6c5a05d5bd16c33ec35dc98 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,7 @@ import { useState } from 'react'; import IssuePage from './pages/issuePage'; import { CommitPage } from './pages/commitGraphPage/CommitPage'; import { IssueGraphPage } from './pages/issueGraphPage/issueGraphPage'; +import CommitPageWrapper from "./pages/commitListPage/commitPageWrapper" function App() { const [testContext, setTestContext] = useState<string>('Admin'); @@ -32,7 +33,7 @@ function App() { <IssueGraphPage /> </Route> <Route exact path={"/commitlist"}> - + <CommitPageWrapper/> </Route> <Route exact path={"/commitgraph"}> <GlobalCommitContext.Provider value = {{testContext, setTestContext}}> diff --git a/src/pages/CommitPage/commitPage.module.css b/src/pages/commitListPage/commitListPage.module.css similarity index 100% rename from src/pages/CommitPage/commitPage.module.css rename to src/pages/commitListPage/commitListPage.module.css diff --git a/src/pages/CommitPage/commitPage.tsx b/src/pages/commitListPage/commitListPage.tsx similarity index 94% rename from src/pages/CommitPage/commitPage.tsx rename to src/pages/commitListPage/commitListPage.tsx index 948178ae25898c2fc6def5c71609e0704ee31524..25c0240881ead5f89b1c2124c91bf2713da0bd4b 100644 --- a/src/pages/CommitPage/commitPage.tsx +++ b/src/pages/commitListPage/commitListPage.tsx @@ -1,7 +1,7 @@ import React, {FC, useState} from 'react'; import {Commit} from "../../utils/queryType"; import Select, {SingleValue} from "react-select"; -import style from "./commitPage.module.css" +import style from "./commitListPage.module.css" interface iSingleCommit { @@ -26,7 +26,7 @@ const SingleCommit: FC<iSingleCommit> = (props) => { <div className={style.Description}> <b>Author: </b> <p> - {props.author_name} at {props.created_at.getUTCDate()}.{props.created_at.getUTCMonth()} + {props.author_name} at {props.created_at.getUTCDate()}.{props.created_at.getUTCMonth()+1} - {props.created_at.getUTCHours()}:{props.created_at.getUTCMinutes()} </p> </div> diff --git a/src/pages/CommitPage/commitPageWrapper.tsx b/src/pages/commitListPage/commitPageWrapper.tsx similarity index 95% rename from src/pages/CommitPage/commitPageWrapper.tsx rename to src/pages/commitListPage/commitPageWrapper.tsx index 8226bfcd4dcbe4f5b93be4f19371356ab7a0d90d..8d78f76bbc61d8a8ac38ea01fe907a859d15d458 100644 --- a/src/pages/CommitPage/commitPageWrapper.tsx +++ b/src/pages/commitListPage/commitPageWrapper.tsx @@ -1,8 +1,8 @@ import React, {useEffect, useState} from 'react'; -import CommitComponent from "./commitPage"; +import CommitComponent from "./commitListPage" import {useGitlabApi} from "../../utils/gitlab_api_service"; import {queryTypes, Commit} from "../../utils/queryType"; -import style from "./commitPage.module.css" +import style from "./commitListPage.module.css" import Loader from "react-loader-spinner";