render()

in js/tabs/schedule/F8ScheduleGantt.js [158:194]


  render() {
    const { filteredSessions } = this.state;
    if (filteredSessions.length < 1) {
      return null;
    }
    const rows = filteredSessions.map((session, index) =>
      this.renderRow(session, index)
    );
    const gutters = rows.length > 1 ? ROW_GUTTERS * (rows.length - 1) : 0;
    const height =
      ROW_HEIGHT * rows.length + gutters + GRID_PADDING * 2 + LABELS_HEIGHT;
    const grid = this.renderGrid(
      height,
      this.state.dayStart,
      this.state.dayEnd
    );
    let now;
    if (
      this.state.now >= this.state.dayStart &&
      this.state.now <= this.state.dayEnd
    ) {
      now = this.renderNow(
        this.state.now,
        this.state.dayStart,
        this.state.dayEnd
      );
    }
    return (
      <View style={this.props.style}>
        <View style={[styles.container, { height }]}>
          {grid}
          <View style={{ marginTop: GRID_PADDING }}>{rows}</View>
          {now}
        </View>
      </View>
    );
  }