Skip to content

Commit

Permalink
[docs] Updating the TS example to use CssBaseline (#10633)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchen-w authored and oliviertassinari committed Mar 13, 2018
1 parent 33cc807 commit 8835943
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/create-react-app-with-typescript/src/withRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import purple from 'material-ui/colors/purple';
import green from 'material-ui/colors/green';
import Reboot from 'material-ui/Reboot';
import CssBaseline from 'material-ui/CssBaseline';

// A theme with custom primary and secondary color.
// It's optional.
Expand All @@ -19,8 +19,8 @@ function withRoot(Component: React.ComponentType) {
// thanks to React context.
return (
<MuiThemeProvider theme={theme}>
{/* Reboot kickstart an elegant, consistent, and simple baseline to build upon. */}
<Reboot />
{/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
<CssBaseline />
<Component {...props} />
</MuiThemeProvider>
);
Expand Down

0 comments on commit 8835943

Please sign in to comment.