-
Notifications
You must be signed in to change notification settings - Fork 0
Drawer #34
base: master
Are you sure you want to change the base?
Drawer #34
Conversation
527a229
to
7dee131
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good! Just need to make some changes in drawer content mainly and I think it will be ready to go!
@@ -0,0 +1,6 @@ | |||
import React from 'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to use this to take the input date range from courses and sort them into their appropriate semesters. Didn't start implementation yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! We should look into trying to use the material-ui styles though as suggested. Once we make that change we are good to merge!
const drawerContent: CSS.Properties = { | ||
backgroundColor: '#F5F5F5', | ||
paddingTop: '30px', | ||
paddingBottom: '30px', | ||
height: '100%', | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the material-ui styling ways instead of CSS properties. We can convert this pretty easily. In the useStyles const, add a key like
drawerContent: {
backgroundColor: '#F5F5F5', // There might be something like theme.pallette.something, if you can find it, great, if not just use this constant for now
paddingTop: theme.spacing(1), // 1 or more, adjust based on what you want
paddingBottom: theme.spacing(1), // same as above
height: '100%',
}
Once that is done, then you can use the className property instead of the styles property, suggested below.
paddingBottom: '30px', | ||
height: '100%', | ||
} | ||
const textStyles: CSS.Properties = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar as above.
// On any nested loop click, all nested lists open and close -> should only open and close specific nested list | ||
|
||
return ( | ||
<div id="drawer_content" style={drawerContent}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once you change the way the styling is written above, this is the change you need down here
<div id="drawer_content" style={drawerContent}> | |
<div id="drawer_content" className={classes.drawerContent}> |
"react": "^16.11.0", | ||
"react-dom": "^16.11.0" | ||
} | ||
"name": "passr", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BraidenCutforth It looks like your editor applied some formatting to package.json
and package-lock.json
by accident. This is avoidable if you only add the files to your commits that you've worked on rather than doing a git add .
to commit every change.
This has small effects such as changing 7587 lines of code in the repository. Also changing the history of the two files, and when this code gets merged, will change everyone's versions of these files as well. But it's solvable with an interactive rebase if you feel like it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a commit I made to fix some line endings. My editor is set to format json like this on purpose. It probably shouldn't happen here though you're right and we should uncommit this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BraidenCutforth My bad, your GitHub profile pictures look pretty much the same, I didn't see you had commits lol
/* User Agent Stylesheet Overrides */ | ||
body { | ||
margin: 0; | ||
font-family: 'Roboto arial'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest placing any global changes to CSS like this in a separate PR; while it's a font you want to use, it's not specifically related to the component you are building. It's always best to write small PRs and separate things that are unrelated to each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was also me, and again should be separate PR. I think this might actually not be needed though.
In order to develop on this project you need the following: | ||
|
||
- [node 12](https://nodejs.org/en/download/) | ||
- [node 12](https://nodejs.org/en/download/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like another format thing your editor did by accident 🙃
It would be great to have the message body of this PR say what you've created and why you've created it, with a link to a ticket or something of the sort. That would save people a few minutes having to figure it out in the future! A descriptive PR title would help as well, such as "Implement Drawer component" rather than just "Drawer". |
7451d15
to
7afecf6
Compare
…miting so that drawer can be merged
Added Current and Previous Courses to the drawer:
To-do: