mirror of
https://github.com/apache/superset.git
synced 2026-04-27 12:05:24 +00:00
* Make Welcome page into a simple React app This removes a dependency on datatables, we should be able to get rid of it as we re-write the Table and PivotTable viz * tests/lint * Bump node version to latest
41 lines
1022 B
JavaScript
41 lines
1022 B
JavaScript
import React from 'react';
|
|
import { Panel, Row, Col, FormControl } from 'react-bootstrap';
|
|
|
|
import DashboardTable from './DashboardTable';
|
|
|
|
export default class App extends React.PureComponent {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state = {
|
|
search: '',
|
|
};
|
|
this.onSearchChange = this.onSearchChange.bind(this);
|
|
}
|
|
onSearchChange(event) {
|
|
this.setState({ search: event.target.value });
|
|
}
|
|
render() {
|
|
return (
|
|
<div className="container welcome">
|
|
<Panel>
|
|
<Row>
|
|
<Col md={8}><h2>Dashboards</h2></Col>
|
|
<Col md={4}>
|
|
<FormControl
|
|
type="text"
|
|
bsSize="sm"
|
|
style={{ marginTop: '25px' }}
|
|
placeholder="Search"
|
|
value={this.state.search}
|
|
onChange={this.onSearchChange}
|
|
/>
|
|
</Col>
|
|
</Row>
|
|
<hr />
|
|
<DashboardTable search={this.state.search} />
|
|
</Panel>
|
|
</div>
|
|
);
|
|
}
|
|
}
|