blob: 7ee18ddcd0534a81ef6e30c182bc1fa028c33422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import brand from 'ba-api/brand';
import { withStyles } from '@material-ui/core/styles';
import { SourceReader, PapperBlock } from 'ba-components';
import { Paper } from '@material-ui/core';
import { CrudTableDemo, CrudTbFormDemo } from './demos';
const styles = ({
root: {
flexGrow: 1,
}
});
class CrudTablePage extends Component {
render() {
const title = brand.name + ' - Table';
const description = brand.desc;
const docSrc = 'containers/Tables/demos/';
const { classes } = this.props;
return (
<div>
<Helmet>
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
</Helmet>
<PapperBlock title="CRUD Table" desc="The CRUD Table supports editing features including creating, updating and deleting rows. The editing state contains information about rows currently being edited, changes applied to a particular row, and rows that have been deleted and created.">
<div>
<Paper className={classes.root}>
<CrudTableDemo />
</Paper>
<SourceReader componentName={docSrc + 'CrudTableDemo.js'} />
</div>
</PapperBlock>
<PapperBlock title="CRUD Table with Redux Form" desc="In the CRUD Table Form mode allow You to create or edit via dedicated form(Redux Form). The design form itself inspired by Gmail with floating design and it can be expanded become popup mode">
<div>
<Paper className={classes.root}>
<CrudTbFormDemo />
</Paper>
<SourceReader componentName={docSrc + 'CrudTbFormDemo.js'} />
</div>
</PapperBlock>
</div>
);
}
}
CrudTablePage.propTypes = {
classes: PropTypes.object.isRequired,
};
export default withStyles(styles)(CrudTablePage);
|