|
@@ -8,6 +8,7 @@ import { date2s, time2s } from './helpers'
|
|
|
import 'bootstrap/dist/css/bootstrap.css'
|
|
|
import EmailList from './lists/components/EmailList'
|
|
|
import PhoneList from './lists/components/PhoneList'
|
|
|
+import layout from './layout'
|
|
|
|
|
|
/**
|
|
|
* General Application Design
|
|
@@ -201,7 +202,7 @@ class Main extends React.Component {
|
|
|
|
|
|
let placeArray = this.state.match.places
|
|
|
if (placeArray.length > 1) {
|
|
|
- //placeArray = placeArray.concat([FILTER_OFF])
|
|
|
+ // placeArray = placeArray.concat([FILTER_OFF])
|
|
|
}
|
|
|
const date = Object.keys(this.state.match.dates).find((key) =>
|
|
|
String(this.state.match.dates[key]) === this.matchDate.value
|
|
@@ -344,7 +345,7 @@ class Main extends React.Component {
|
|
|
paylist.Sheets[place] = worksheets[place]
|
|
|
})
|
|
|
|
|
|
- /*let payListPerPlace = []
|
|
|
+ /* let payListPerPlace = []
|
|
|
this.state.match.filtered.forEach((match) => {
|
|
|
[match.Spieler1, match.Spieler2].forEach((matchPlayer) => {
|
|
|
if (matchPlayer) {
|
|
@@ -376,9 +377,19 @@ class Main extends React.Component {
|
|
|
const dates = this.props.matchList.dates || {}
|
|
|
const matchCategories = this.props.matchList.categories || []
|
|
|
const playerCategories = this.props.playerList.categories || []
|
|
|
+ const AppLayout = layout.components.AppLayout
|
|
|
|
|
|
return (
|
|
|
<div className='container'>
|
|
|
+ <AppLayout
|
|
|
+ layout={this.props.layout}
|
|
|
+ layoutActions={this.props.layoutActions}
|
|
|
+ state={this.props}
|
|
|
+ components={{
|
|
|
+ PlayerTable: playerList.components.PlayerTable,
|
|
|
+ MatchTable: matchList.components.MatchTable
|
|
|
+ }}
|
|
|
+ />
|
|
|
<form>
|
|
|
<label htmlFor='PlayerList'>Swisstennis PlayerList.xls</label>
|
|
|
<input type='file' id='PlayerList' ref={(input) => { this.playerList = input }} accept='.xls' placeholder='PlayerList File' onChange={this.handlePlayerList} />
|