[UI Work] Add Overview Artist Index View

This commit is contained in:
Qstick 2017-10-15 02:17:53 -04:00
parent f6fc78d927
commit 566ac1a9d3
41 changed files with 1337 additions and 138 deletions

View file

@ -35,11 +35,10 @@ class CalendarPage extends Component {
// Listeners
onMeasure = ({ width }) => {
this.setState({ width }, () => {
const days = Math.max(3, Math.min(7, Math.floor(width / MINIMUM_DAY_WIDTH)));
console.log(`${width} || ${days}`);
this.props.onDaysCountChange(days);
});
this.setState({ width });
const days = Math.max(3, Math.min(7, Math.floor(width / MINIMUM_DAY_WIDTH)));
this.props.onDaysCountChange(days);
}
onFilterMenuItemPress = (filterKey, unmonitored) => {
@ -109,7 +108,11 @@ class CalendarPage extends Component {
whitelist={['width']}
onMeasure={this.onMeasure}
>
<CalendarConnector />
{
this.state.width > 0 ?
<CalendarConnector /> :
<div />
}
</Measure>
<Legend colorImpairedMode={colorImpairedMode} />