Skip to content

Commit

Permalink
yarn docs:typescript:formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 3, 2020
1 parent 4a9e228 commit f25f4fa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- checkout
- install_js
- run:
name: Check if yarn prettier was run
name: '`yarn prettier` changes committed?'
command: yarn prettier check-changed
- run:
name: Generate PropTypes
Expand All @@ -116,7 +116,7 @@ jobs:
name: '`yarn proptypes` changes committed?'
command: git diff --exit-code
- run:
name: Can we generate the documentation?
name: Generate the documentation
command: yarn docs:api
- run:
name: '`yarn docs:api` changes committed?'
Expand All @@ -134,9 +134,9 @@ jobs:
- install_js
- run:
name: Transpile TypeScript demos
command: yarn workspace docs typescript:transpile --disable-cache
command: yarn docs:typescript:formatted --disable-cache
- run:
name: Are the compiled TypeScript demos equivalent to the JavaScript demos?
name: '`yarn docs:typescript:formatted` changes committed?'
command: git add -A && git diff --exit-code --staged
- run:
name: Tests TypeScript definitions
Expand Down
45 changes: 24 additions & 21 deletions docs/src/pages/components/drawers/ClippedDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ const useStyles = makeStyles((theme) => ({
drawerPaper: {
width: drawerWidth,
},
drawerContainer: {
overflow: 'auto',
},
content: {
flexGrow: 1,
padding: theme.spacing(3),
},
// necessary for content to be below app bar
toolbar: theme.mixins.toolbar,
}));

export default function ClippedDrawer() {
Expand All @@ -57,27 +58,29 @@ export default function ClippedDrawer() {
paper: classes.drawerPaper,
}}
>
<div className={classes.toolbar} />
<List>
{['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => (
<ListItem button key={text}>
<ListItemIcon>{index % 2 === 0 ? <InboxIcon /> : <MailIcon />}</ListItemIcon>
<ListItemText primary={text} />
</ListItem>
))}
</List>
<Divider />
<List>
{['All mail', 'Trash', 'Spam'].map((text, index) => (
<ListItem button key={text}>
<ListItemIcon>{index % 2 === 0 ? <InboxIcon /> : <MailIcon />}</ListItemIcon>
<ListItemText primary={text} />
</ListItem>
))}
</List>
<Toolbar />
<div className={classes.drawerContainer}>
<List>
{['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => (
<ListItem button key={text}>
<ListItemIcon>{index % 2 === 0 ? <InboxIcon /> : <MailIcon />}</ListItemIcon>
<ListItemText primary={text} />
</ListItem>
))}
</List>
<Divider />
<List>
{['All mail', 'Trash', 'Spam'].map((text, index) => (
<ListItem button key={text}>
<ListItemIcon>{index % 2 === 0 ? <InboxIcon /> : <MailIcon />}</ListItemIcon>
<ListItemText primary={text} />
</ListItem>
))}
</List>
</div>
</Drawer>
<main className={classes.content}>
<div className={classes.toolbar} />
<Toolbar />
<Typography paragraph>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua. Rhoncus dolor purus non enim praesent elementum
Expand Down

0 comments on commit f25f4fa

Please sign in to comment.