css: try first CSS reference after setting up CSS module
This commit is contained in:
parent
0a48c74624
commit
d1a19128bc
@ -1,7 +1,7 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import Layout from "./components/Layout/Layout";
|
||||
import BurgerBuilder from "./containers/BurgerBuilder/BurgerBuilder"
|
||||
import Layout from './components/Layout/Layout';
|
||||
import BurgerBuilder from './containers/BurgerBuilder/BurgerBuilder';
|
||||
|
||||
class App extends Component {
|
||||
render() {
|
||||
|
3
src/components/Layout/Layout.css
Normal file
3
src/components/Layout/Layout.css
Normal file
@ -0,0 +1,3 @@
|
||||
.Content{
|
||||
margin-top: 16px;
|
||||
}
|
@ -1,11 +1,12 @@
|
||||
import React from 'react';
|
||||
|
||||
import Aux from '../../hoc/Auxiliary';
|
||||
import classes from './Layout.css';
|
||||
|
||||
const layout = (props) => (
|
||||
<Aux>
|
||||
<div>Toolbar, SideDrawer, Backdrop</div>
|
||||
<main>
|
||||
<main className={classes.Content}>
|
||||
{props.children}
|
||||
</main>
|
||||
</Aux>
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import Aux from "../../hoc/Auxiliary";
|
||||
import Aux from '../../hoc/Auxiliary';
|
||||
|
||||
class BurgerBuilder extends Component {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user