Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AnishGopalan84 committed Oct 13, 2017
1 parent 739620e commit 5aef65f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 33 deletions.
6 changes: 3 additions & 3 deletions server/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Provider } from 'react-redux'
import { flushChunkNames } from 'react-universal-component/server'
import flushChunks from 'webpack-flush-chunks'
import configureStore from './configureStore'

import App from '../src/components/App'

export default ({ clientStats }) => async (req, res, next) => {
Expand All @@ -20,11 +21,10 @@ export default ({ clientStats }) => async (req, res, next) => {
console.log('CHUNK NAMES', chunkNames)

return res.send(
`<!doctype html>
<html>
`<html>
<head>
<meta charset="utf-8">
<title>redux-first-router-demo</title>
<title>gnome-blockchains-demo</title>
${styles}
<link rel="stylesheet prefetch" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
</head>
Expand Down
17 changes: 12 additions & 5 deletions src/components/Admin.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
import React from 'react'
import { admin } from '../css/Switcher'
import styles from '../css/MeetingAgenda'

import DateTimePicker from './DateTimePicker'
import MeetingTable from './MeetingTable'

const MeetingAgenda = () =>
<div>
<label htmlFor='MettingDate'> Meeting Date </label>
<DateTimePicker />
<div>
<div className={styles.meetingAgenda}>
<div className={styles.meetingDateDiv}>
<div>
<label htmlFor='MettingDate' className='meetingDateLabel'>
{' '}Meeting Date
<DateTimePicker />
</label>
</div>
</div>
<div className={styles.meetingTableWrapper}>
<MeetingTable />
<button>Add another </button>
<button>Submit</button>
</div>
</div>

Expand Down
4 changes: 3 additions & 1 deletion src/components/DateTimePicker.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from 'react'
import DateTime from 'react-datetime'

import styles from '../css/DatetimePick'

const DateTimePicker = () =>
<div>
<div className={styles.datetimePicker}>
<DateTime />
</div>

Expand Down
25 changes: 16 additions & 9 deletions src/components/MeetingTable.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
import React from 'react'
import styles from '../css/MeetingTable'

const MeetingTable = () =>
<div>
<div>
<label htmlFor='MettingPoint'>Meeting point</label>
<input />
<div className={styles.meetingTable}>
<div className={styles.meetingRows}>
<label htmlFor='MettingPoint' className={styles.meetingLabels}>
Meeting point
</label>
<input className='form-control' />
</div>
<div>
<label htmlFor='ShortDesc'> Short Desc </label>
<textarea />
<div className={styles.meetingRows}>
<label htmlFor='ShortDesc' className={styles.meetingLabels}>
{' '}Short Desc{' '}
</label>
<textarea className='form-control' />
</div>
<div>
<label htmlFor='NumVotes'> Num of votes reqd </label>
<div className={styles.meetingRows}>
<label htmlFor='NumVotes' className={styles.meetingLabels}>
{' '}Num of votes reqd{' '}
</label>
<input />
</div>
</div>
Expand Down
15 changes: 0 additions & 15 deletions src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,6 @@ const Sidebar = ({ onClick, path }) =>

<NavLink activeClassName={styles.active} exact to='/'>HOME</NavLink>

<NavLink activeClassName={styles.active} to='/list/db-graphql'>
DB & GRAPHQL
</NavLink>

<NavLink activeClassName={styles.active} to={['list', 'react-redux']}>
REACT & REDUX
</NavLink>

<NavLink
activeClassName={styles.active}
to={{ type: 'LIST', payload: { category: 'fp' } }}
>
FP
</NavLink>

<div style={{ height: 14 }} />

<NavLink
Expand Down

0 comments on commit 5aef65f

Please sign in to comment.