time-convertor

Convert time across timezones
git clone http://git.hanabi.in/repos/time-convertor.git
Log | Files | Refs | README | LICENSE

commit 208a5dc4d6f0719e462df5692e547cafe2096a40
parent f6ff66435fc4ab86d5db6d50c94d076c0300521b
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Mon, 18 May 2020 13:37:47 +0530

remove middle man, move files

Diffstat:
Msrc/App.js | 12++++++------
Rsrc/subpages/future.js -> src/comp/future.js | 0
Rsrc/subpages/help.js -> src/comp/help.js | 0
Dsrc/subpages/fromTo.js | 9---------
Dsrc/subpages/main.js | 9---------
5 files changed, 6 insertions(+), 24 deletions(-)

diff --git a/src/App.js b/src/App.js @@ -1,12 +1,12 @@ import React from 'react'; import { Route, BrowserRouter as Router, Switch } from 'react-router-dom'; +import CurrentTime from './comp/currentTime'; import Footer from './comp/footer'; -import FromTo from './subpages/fromTo'; -import Future from './subpages/future'; +import FromToTime from './comp/fromToTime'; +import Future from './comp/future'; import Header from './comp/header'; -import Help from './subpages/help'; -import Main from './subpages/main'; +import Help from './comp/help'; function App() { return ( @@ -22,9 +22,9 @@ function App() { <Header /> <Switch> <Route component={Help} path="/help" /> - <Route component={FromTo} path="/from-to" /> + <Route component={FromToTime} path="/from-to" /> <Route component={Future} path="/future" /> - <Route component={Main} path="/" /> + <Route component={CurrentTime} path="/" /> </Switch> <Footer /> </div> diff --git a/src/subpages/future.js b/src/comp/future.js diff --git a/src/subpages/help.js b/src/comp/help.js diff --git a/src/subpages/fromTo.js b/src/subpages/fromTo.js @@ -1,9 +0,0 @@ -import React from 'react'; - -import FromToTime from '../comp/fromToTime'; - -function FromTo() { - return <FromToTime />; -} - -export default FromTo; diff --git a/src/subpages/main.js b/src/subpages/main.js @@ -1,9 +0,0 @@ -import React from 'react'; - -import CurrentTime from '../comp/currentTime'; - -function Main() { - return <CurrentTime />; -} - -export default Main;