Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamboduch committed Mar 8, 2019
1 parent e0bca77 commit 3874f67
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 118 deletions.
2 changes: 1 addition & 1 deletion src/Chapter02AppBar/FixedPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const FixedPosition = withStyles(styles)(({ classes }) => (
<MenuIcon />
</IconButton>
<Typography
variant="title"
variant="h6"
color="inherit"
className={classes.flex}
>
Expand Down
1 change: 1 addition & 0 deletions src/Chapter02AppBar/HideOnScroll.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react';

import { withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter02AppBar/ToolbarAbstraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const MyToolbar = withStyles(styles)(
<MenuItems closeMenu={this.closeMenu} />
</Menu>
<Typography
variant="title"
variant="h6"
color="inherit"
className={classes.flex}
>
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter02AppBar/WithNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const MyToolbar = withStyles(styles)(
<MenuItems />
</Menu>
<Typography
variant="title"
variant="h6"
color="inherit"
className={classes.flex}
>
Expand Down
2 changes: 1 addition & 1 deletion src/Chapter03Drawer/AppBarInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const MyToolbar = withStyles(styles)(
<MenuIcon />
</IconButton>
<Typography
variant="title"
variant="h6"
color="inherit"
className={classes.flex}
>
Expand Down
114 changes: 0 additions & 114 deletions src/Chapter03Drawer/AppBarInteraction.tmp.js

This file was deleted.

3 changes: 3 additions & 0 deletions src/stories/Chapter01Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, select } from '@storybook/addon-knobs';

import withThemeProvider from './withThemeProvider';

import {
UnderstandingBreakpoints,
FillingSpace,
Expand All @@ -13,6 +15,7 @@ import {

storiesOf('Chapter 1 Grid', module)
.addDecorator(withKnobs)
.addDecorator(withThemeProvider)
.add('Understanding Breakpoints', () => (
<UnderstandingBreakpoints />
))
Expand Down
3 changes: 3 additions & 0 deletions src/stories/Chapter02AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { storiesOf } from '@storybook/react';
import StoryRouter from 'storybook-react-router';
import { withKnobs, text } from '@storybook/addon-knobs';

import withThemeProvider from './withThemeProvider';

import {
HideOnScroll,
FixedPosition,
Expand All @@ -14,6 +16,7 @@ import {
storiesOf('Chapter 2 App Bar', module)
.addDecorator(withKnobs)
.addDecorator(StoryRouter())
.addDecorator(withThemeProvider)
.add('Hide On Scroll', () => <HideOnScroll />)
.add('Fixed Position', () => <FixedPosition />)
.add('Toolbar Abstraction', () => (
Expand Down
3 changes: 3 additions & 0 deletions src/stories/Chapter03Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import StoryRouter from 'storybook-react-router';

import { withKnobs, select } from '@storybook/addon-knobs';

import withThemeProvider from './withThemeProvider';

import {
DrawerTypes,
DrawerItemState,
Expand All @@ -18,6 +20,7 @@ import {
storiesOf('Chapter 3 Drawers', module)
.addDecorator(withKnobs)
.addDecorator(StoryRouter())
.addDecorator(withThemeProvider)
.add('Drawer Types', () => (
<DrawerTypes
variant={select(
Expand Down

0 comments on commit 3874f67

Please sign in to comment.