From f25f4fa2c3c084f34eaf072b6766b7ad6ff489ee Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 3 Apr 2020 15:45:52 +0200 Subject: [PATCH] yarn docs:typescript:formatted --- .circleci/config.yml | 8 ++-- .../pages/components/drawers/ClippedDrawer.js | 45 ++++++++++--------- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4e921f7fe7d40b..8a7522064b9485 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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?' @@ -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 diff --git a/docs/src/pages/components/drawers/ClippedDrawer.js b/docs/src/pages/components/drawers/ClippedDrawer.js index bafdaf0795171f..b29b3cf7beaa94 100644 --- a/docs/src/pages/components/drawers/ClippedDrawer.js +++ b/docs/src/pages/components/drawers/ClippedDrawer.js @@ -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() { @@ -57,27 +58,29 @@ export default function ClippedDrawer() { paper: classes.drawerPaper, }} > -
- - {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( - - {index % 2 === 0 ? : } - - - ))} - - - - {['All mail', 'Trash', 'Spam'].map((text, index) => ( - - {index % 2 === 0 ? : } - - - ))} - + +
+ + {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( + + {index % 2 === 0 ? : } + + + ))} + + + + {['All mail', 'Trash', 'Spam'].map((text, index) => ( + + {index % 2 === 0 ? : } + + + ))} + +
-
+ 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