rugby-board/rugby-board-node

View on GitHub
client/pages/WikiPage.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { h, Component } from 'preact';

import { setDocumentTitle } from '../util';
import WikiList from '../components/WikiList';
import Heading from '../components/Heading';

export default class WikiPage extends Component {
  constructor(props) {
    super(props);

    const wikiHeading = {
      id: 'wiki',
      title: '赛事介绍',
      icon: 'info-circle',
      more_text: '',
      more_link: '',
    };

    setDocumentTitle('赛事介绍');

    this.state = { wikiHeading };
  }

  render() {
    return (
      <div className="columns">
        <div className="column">
          <Heading data={this.state.wikiHeading} />
          <WikiList />
        </div>
      </div>
    );
  }
}