|
1 | 1 | import Plus from '../../images/plus.svg'; |
2 | 2 | import { ADD_DATASET } from '../../constants'; |
3 | | -import { Box, Button } from '@material-ui/core'; |
| 3 | +import { Box, Button, Typography, Link } from '@material-ui/core'; |
4 | 4 | import config from "./../../config/app.json"; |
5 | 5 |
|
6 | 6 | const SidebarFooter = (props) => { |
7 | 7 | return ( |
8 | | - <Box display="flex" justifyContent="space-between"> |
9 | | - <Button |
10 | | - variant='contained' |
11 | | - disableElevation |
12 | | - color='primary' |
13 | | - style={{ "width" : "45%","minWidth" : "45%" }} |
14 | | - onClick={() => props.setOpenUploadDialog(true)} |
15 | | - > |
16 | | - <img src={Plus} alt='Plus' /> |
17 | | - {ADD_DATASET} |
18 | | - </Button> |
19 | | - <Button |
20 | | - variant='contained' |
21 | | - disableElevation |
22 | | - color='primary' |
23 | | - style={{ "width" : "45%", "minWidth" : "45%" }} |
24 | | - onClick={() => props.setOpenDatasetsListDialog(true)} |
25 | | - > |
26 | | - {config.text.datasetsButtonText} |
27 | | - </Button> |
| 8 | + <Box> |
| 9 | + <Box display="flex" justifyContent="space-between"> |
| 10 | + <Button |
| 11 | + variant='contained' |
| 12 | + disableElevation |
| 13 | + color='primary' |
| 14 | + style={{ "width" : "45%","minWidth" : "45%" }} |
| 15 | + onClick={() => props.setOpenUploadDialog(true)} |
| 16 | + > |
| 17 | + <img src={Plus} alt='Plus' /> |
| 18 | + {ADD_DATASET} |
| 19 | + </Button> |
| 20 | + <Button |
| 21 | + variant='contained' |
| 22 | + disableElevation |
| 23 | + color='primary' |
| 24 | + style={{ "width" : "45%", "minWidth" : "45%" }} |
| 25 | + onClick={() => props.setOpenDatasetsListDialog(true)} |
| 26 | + > |
| 27 | + {config.text.datasetsButtonText} |
| 28 | + </Button> |
| 29 | + </Box> |
| 30 | + <Box display="flex" justifyContent="center"> |
| 31 | + <Typography variant='body1'><Link href={config.docs_url}>User manual</Link></Typography> |
| 32 | + </Box> |
| 33 | + <Box display="flex" justifyContent="center"> |
| 34 | + <Typography variant='caption'>Powered by MetaCell</Typography> |
| 35 | + </Box> |
28 | 36 | </Box> |
29 | 37 | ); |
30 | 38 | }; |
|
0 commit comments