1
1
import React from "react" ;
2
2
import { withStyles , createStyles } from "@material-ui/core/styles" ;
3
3
import Container from "@material-ui/core/Container" ;
4
+ import Grid from "@material-ui/core/Grid" ;
5
+ import Paper from "@material-ui/core/Paper" ;
4
6
import Typography from "@material-ui/core/Typography" ;
5
7
import PreferenceForm from "./PreferenceForm" ;
6
8
import Preview from "./Preview" ;
@@ -100,19 +102,32 @@ class Main extends React.Component {
100
102
< Typography variant = "h4" gutterBottom >
101
103
IPFS Portable User Settings
102
104
</ Typography >
103
- < div className = { classes . main } >
104
- < PreferenceForm
105
- cid = { this . state . cid }
106
- preferences = { this . state . preferences }
107
- justSaved = { this . state . justSaved }
108
- justLoaded = { this . state . justLoaded }
109
- onCIDChange = { this . handleCIDChange }
110
- onPrefChange = { this . handlePrefChange }
111
- onLoad = { this . handleLoad }
112
- onSave = { this . handleSave }
113
- />
114
- < Preview cid = { this . state . cid } preferences = { this . state . preferences } />
115
- </ div >
105
+ { /* <div className={classes.main}> */ }
106
+ < Grid container spacing = { 3 } >
107
+ < Grid item sm = { 12 } md = { 6 } >
108
+ < Paper className = { classes . paper } >
109
+ < PreferenceForm
110
+ cid = { this . state . cid }
111
+ preferences = { this . state . preferences }
112
+ justSaved = { this . state . justSaved }
113
+ justLoaded = { this . state . justLoaded }
114
+ onCIDChange = { this . handleCIDChange }
115
+ onPrefChange = { this . handlePrefChange }
116
+ onLoad = { this . handleLoad }
117
+ onSave = { this . handleSave }
118
+ />
119
+ </ Paper >
120
+ </ Grid >
121
+ < Grid item sm = { 12 } md = { 6 } >
122
+ < Paper className = { classes . paper } >
123
+ < Preview
124
+ cid = { this . state . cid }
125
+ preferences = { this . state . preferences }
126
+ />
127
+ </ Paper >
128
+ </ Grid >
129
+ </ Grid >
130
+ { /* </div> */ }
116
131
< ErrorSnackbar
117
132
error = { this . state . error }
118
133
onClose = { this . handleErrorClose }
@@ -129,6 +144,9 @@ const styles = theme =>
129
144
} ,
130
145
main : {
131
146
display : "flex"
147
+ } ,
148
+ paper : {
149
+ padding : 32
132
150
}
133
151
} ) ;
134
152
0 commit comments