File tree Expand file tree Collapse file tree 2 files changed +8
-84
lines changed Expand file tree Collapse file tree 2 files changed +8
-84
lines changed Original file line number Diff line number Diff line change @@ -4,39 +4,10 @@ import { Link, RouteComponentProps } from 'react-router-dom';
4
4
// import Grid from '@material-ui/core/Grid';
5
5
import { makeStyles } from '@material-ui/core/styles' ;
6
6
7
- const CodePreview : React . FC < RouteComponentProps > = ( ) => {
8
-
9
- const body = document . querySelector ( 'body' ) ;
10
- body . style . overflowY = 'auto' ;
11
- const useStyles = makeStyles ( {
12
- title : {
13
- color : '#14151f' ,
14
- fontSize : 54
15
- } ,
16
- text : {
17
- color : '#2e2f3e' ,
18
- fontSize : 24
19
- } ,
20
- wrapper : {
21
- margin : '30px 30px 30px 30px' ,
22
- width : 'auto'
23
- } ,
24
- img : {
25
- borderRadius : '3px' ,
26
- // alignSelf: 'center'
27
- } ,
28
- imgWrapper : {
29
- display : 'flex' ,
30
- flexDirection : 'row' ,
31
- alignItems : 'center' ,
32
- // border: '1px solid black',
33
- width : 'auto'
34
- }
35
- } ) ;
36
-
37
- const classes = useStyles ( ) ;
38
-
39
- < < << << < HEAD
7
+ const CodePreview : React . FC < {
8
+ classes : any ;
9
+ setPage : Function ;
10
+ } > = ( { classes, setPage } ) => {
40
11
return (
41
12
< div className = { classes . wrapper } >
42
13
< h1 className = { classes . title } > Code Preview</ h1 >
@@ -46,15 +17,6 @@ const CodePreview: React.FC<RouteComponentProps> = () => {
46
17
< p className = { classes . text } > This preview will populate and generate in real-time as you use the drag-n-drop functionality with the canvas.</ p >
47
18
< p className = { classes . text } > To learn more about the canvas, find the tutorial labeled "Canvas".</ p >
48
19
</ div >
49
- =======
50
- const CodePreview: React.FC< {
51
- classes : any ;
52
- setPage : Function ;
53
- } > = ({ classes , setPage } ) => {
54
- return (
55
- < div >
56
- CodePreview
57
- >>> >>> > 2 a650b9c905f532c943c7a8fc17e18e4fdc68eb4
58
20
</ div >
59
21
) ;
60
22
} ;
Original file line number Diff line number Diff line change @@ -9,39 +9,10 @@ import reusablecomponents1 from '../../../resources/reusable_components_tutorial
9
9
import reusablecomponents2 from '../../../resources/reusable_components_tutorial_images/reusablecomponents2.png' ;
10
10
import reusablecomponents3 from '../../../resources/reusable_components_tutorial_images/reusablecomponents3.png' ;
11
11
12
- < < << << < HEAD
13
- const ReusableComponents : React . FC < RouteComponentProps > = ( ) => {
14
-
15
- const body = document . querySelector ( 'body' ) ;
16
- body . style . overflowY = 'auto' ;
17
- const useStyles = makeStyles ( {
18
- title : {
19
- color : '#14151f' ,
20
- fontSize : 25
21
- } ,
22
- text : {
23
- color : '#2e2f3e' ,
24
- fontSize : 20
25
- } ,
26
- wrapper : {
27
- margin : '30px 30px 30px 30px' ,
28
- width : 'auto'
29
- } ,
30
- img : {
31
- borderRadius : '3px' ,
32
- // alignSelf: 'center'
33
- } ,
34
- imgWrapper : {
35
- display : 'flex' ,
36
- flexDirection : 'row' ,
37
- alignItems : 'center' ,
38
- // border: '1px solid black',
39
- width : 'auto'
40
- }
41
- } ) ;
42
-
43
- const classes = useStyles ( ) ;
44
-
12
+ const ReusableComponents : React . FC < {
13
+ classes : any ;
14
+ setPage : Function ;
15
+ } > = ( { classes, setPage } ) => {
45
16
return (
46
17
< div className = { classes . wrapper } >
47
18
< h1 className = { classes . title } > Reusable Components Tutorial</ h1 >
@@ -70,15 +41,6 @@ const ReusableComponents: React.FC<RouteComponentProps> = () => {
70
41
< p className = { classes . text } > You can place a reusable component inside Pages and populate the component itself with the HTML Elements.</ p >
71
42
72
43
</ div >
73
- =======
74
- const ReusableComponents: React.FC< {
75
- classes : any ;
76
- setPage : Function ;
77
- } > = ({ classes , setPage } ) => {
78
- return (
79
- < div >
80
- ReusableComponents
81
- >>> >>> > 2 a650b9c905f532c943c7a8fc17e18e4fdc68eb4
82
44
</ div >
83
45
) ;
84
46
} ;
You can’t perform that action at this time.
0 commit comments