Skip to content

Commit

Permalink
[docs] Migrate Container demos to emotion (#25220)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicasas authored Mar 6, 2021
1 parent 69c2084 commit 6666682
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 32 deletions.
10 changes: 2 additions & 8 deletions docs/src/pages/components/container/FixedContainer.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import * as React from 'react';
import CssBaseline from '@material-ui/core/CssBaseline';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import Container from '@material-ui/core/Container';

export default function FixedContainer() {
return (
<React.Fragment>
<CssBaseline />
<Container fixed>
<Typography
component="div"
style={{
backgroundColor: '#cfe8fc',
height: '100vh',
}}
/>
<Box sx={{ bgcolor: '#cfe8fc', height: '100vh' }} />
</Container>
</React.Fragment>
);
Expand Down
10 changes: 2 additions & 8 deletions docs/src/pages/components/container/FixedContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import * as React from 'react';
import CssBaseline from '@material-ui/core/CssBaseline';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import Container from '@material-ui/core/Container';

export default function FixedContainer() {
return (
<React.Fragment>
<CssBaseline />
<Container fixed>
<Typography
component="div"
style={{
backgroundColor: '#cfe8fc',
height: '100vh',
}}
/>
<Box sx={{ bgcolor: '#cfe8fc', height: '100vh' }} />
</Container>
</React.Fragment>
);
Expand Down
10 changes: 2 additions & 8 deletions docs/src/pages/components/container/SimpleContainer.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import * as React from 'react';
import CssBaseline from '@material-ui/core/CssBaseline';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import Container from '@material-ui/core/Container';

export default function SimpleContainer() {
return (
<React.Fragment>
<CssBaseline />
<Container maxWidth="sm">
<Typography
component="div"
style={{
backgroundColor: '#cfe8fc',
height: '100vh',
}}
/>
<Box sx={{ bgcolor: '#cfe8fc', height: '100vh' }} />
</Container>
</React.Fragment>
);
Expand Down
10 changes: 2 additions & 8 deletions docs/src/pages/components/container/SimpleContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import * as React from 'react';
import CssBaseline from '@material-ui/core/CssBaseline';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import Container from '@material-ui/core/Container';

export default function SimpleContainer() {
return (
<React.Fragment>
<CssBaseline />
<Container maxWidth="sm">
<Typography
component="div"
style={{
backgroundColor: '#cfe8fc',
height: '100vh',
}}
/>
<Box sx={{ bgcolor: '#cfe8fc', height: '100vh' }} />
</Container>
</React.Fragment>
);
Expand Down

0 comments on commit 6666682

Please sign in to comment.