110 |
113 |
114 |
120 |
121 |
122 |
123 |
124 | Demo
125 |
126 |
127 |
128 |
129 | {(users.loading) &&
}
130 |
131 |
137 | {sideList}
138 |
139 |
140 |
141 | );
142 | }
143 | }
144 |
145 | export default withStyles(styles, { withTheme: true })(Header);
146 |
--------------------------------------------------------------------------------
/src/client/src/components/UserForm/Form.tsx:
--------------------------------------------------------------------------------
1 | import React, { SyntheticEvent } from 'react';
2 | import Button from '@material-ui/core/Button';
3 | import { withStyles, Theme } from '@material-ui/core/styles';
4 | import TextField from '@material-ui/core/TextField';
5 | import FormControl from '@material-ui/core/FormControl';
6 | import { IUser, } from '../../reducers/initialState';
7 | import { FormikProps, } from 'formik';
8 | import { ClassNameMap } from '@material-ui/core/styles/withStyles';
9 |
10 | const styles = (theme: Theme) => ({
11 | formControlControls: {
12 | display: 'flex',
13 | flexDirection: 'row' as 'row',
14 | justifyContent: 'space-between',
15 | },
16 | textField: {
17 | marginLeft: theme.spacing.unit,
18 | marginRight: theme.spacing.unit,
19 | },
20 | button: {
21 | margin: theme.spacing.unit,
22 | },
23 | });
24 |
25 | export interface IProps