css: try first CSS reference after setting up CSS module

This commit is contained in:
oscarzhou 2020-12-09 19:46:19 +13:00
parent 0a48c74624
commit d1a19128bc
4 changed files with 8 additions and 4 deletions

View File

@ -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() {

View File

@ -0,0 +1,3 @@
.Content{
margin-top: 16px;
}

View File

@ -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>

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import Aux from "../../hoc/Auxiliary";
import Aux from '../../hoc/Auxiliary';
class BurgerBuilder extends Component {