Commit 624bfb73 authored by gitexa's avatar gitexa

Timer done

parent d31b588a
......@@ -9,6 +9,7 @@ import { Button, Segment, Header, Label, Statistic, Form, Icon, Popup } from 'se
import { Link } from 'found';
import styles from './HomeView.scss';
import classNames from 'classnames';
import TimePicker1 from 'rc-time-picker'
class HomeView extends React.Component {
......@@ -35,7 +36,6 @@ class HomeView extends React.Component {
<Page title='Mobility Nudging' viewer={this.props.viewer}>
<section className={styles.container}>
<Segment padded='very'>
<div className={styles.currentTime}>
......@@ -55,15 +55,12 @@ class HomeView extends React.Component {
<div className={styles.timeContainer}>
<Segment circular className={styles.timeSegment}>
<Statistic className={styles.timeLabel}>
<Statistic.Label>Geladen um</Statistic.Label>
<Statistic.Value>{this.state.endTime}</Statistic.Value>
</Statistic>
</Segment>
<div className={styles.timer}>
<TimePicker1 />
</div>
</div>
<Timer />
<Neighbour className={styles.neighbour} />;
......
......@@ -50,6 +50,12 @@
}
.timer {
display: flex;
flex: 1;
justify-content: center;
}
.buttonGroup {
margin-bottom: 10px;
}
......
......@@ -5,6 +5,7 @@ import { withAuth } from 'modules/auth/utils';
import { Button, Segment, Header, Label, Statistic, Form, Icon, Popup , TimePicker } from 'semantic-ui-react';
import { Link } from 'found';
import { DateTimePicker } from 'react-widgets'
import TimePicker1 from 'rc-time-picker'
import 'react-widgets/dist/css/react-widgets.css';
// import Globalize from 'globalize';
// import globalizeLocalizer from 'react-widgets-globalize';
......@@ -13,17 +14,14 @@ import moment from 'moment'
import momentLocaliser from 'react-widgets-moment'
import styles from './Timer.scss';
momentLocaliser(moment)
class Timer extends React.Component {
render() {
return (
<DateTimePicker className={styles.timepicker}
time={true}
date={false}
/>
<TimePicker1 />
);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment