-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #44. Added React Modal! #206
base: develop
Are you sure you want to change the base?
Changes from all commits
07467d2
ec14f03
d403f3f
14066a7
b910bb3
d20e017
85083d0
a921a96
e547ad4
b2b2f8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
order: 1; | ||
} | ||
|
||
|
||
@media (max-width: 1279px) { | ||
#pursuance-page { | ||
padding-left: 0; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,10 @@ import DiscussView from './views/DiscussView'; | |
import ParticipantsView from './views/ParticipantsView'; | ||
import RightPanel from '../RightPanel/RightPanel'; | ||
import './PursuancePage.css'; | ||
import ShortcutsModal from '../ShortcutsModal/ShortcutsModal'; | ||
|
||
class PursuancePage extends Component { | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greg-han Whitespace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @elimisteve, I think you should totally leverage |
||
componentWillMount() { | ||
let { setCurrentPursuance, match, currentPursuanceId } = this.props; | ||
currentPursuanceId = Number(match.params.pursuanceId) || currentPursuanceId; | ||
|
@@ -20,21 +21,22 @@ class PursuancePage extends Component { | |
|
||
render() { | ||
return ( | ||
<Router> | ||
<div id="pursuance-page" className="content-ctn"> | ||
<nav id="pursuance-nav"> | ||
<PursuanceMenu /> | ||
</nav> | ||
<article> | ||
<Switch> | ||
<Route exact path="/pursuance/:pursuanceId" component={TaskListView} /> | ||
<Route exact path="/pursuance/:pursuanceId/tasks" component={TaskListView} /> | ||
<Route exact path="/pursuance/:pursuanceId/calendar" component={CalendarView} /> | ||
<Route exact path="/pursuance/:pursuanceId/discuss/task/:taskGid" component={DiscussView} /> | ||
<Route exact path="/pursuance/:pursuanceId/participants" component={ParticipantsView} /> | ||
</Switch> | ||
<RightPanel /> | ||
</article> | ||
<Router> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greg-han This line shouldn't be different; check whitespace |
||
<div id="pursuance-page" className="content-ctn" onKeyDown={(event) => {this.child.handleKeyDown(event);}} tabIndex="0"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
can be just
or in this case -- even simpler -- just
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Break down long lines like this to look more like:
|
||
<ShortcutsModal ref={instance => { this.child = instance; }} /> | ||
<nav id="pursuance-nav"> | ||
<PursuanceMenu /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greg-han Please indent 2 spaces per level at to show the structure of the HTML/JSX |
||
</nav> | ||
<article> | ||
<Switch> | ||
<Route exact path="/pursuance/:pursuanceId" component={TaskListView} /> | ||
<Route exact path="/pursuance/:pursuanceId/tasks" component={TaskListView} /> | ||
<Route exact path="/pursuance/:pursuanceId/calendar" component={CalendarView} /> | ||
<Route exact path="/pursuance/:pursuanceId/discuss/task/:taskGid" component={DiscussView} /> | ||
<Route exact path="/pursuance/:pursuanceId/participants" component={ParticipantsView} /> | ||
</Switch> | ||
<RightPanel /> | ||
</article> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greg-han None of these lines should be different; check whitespace |
||
</div> | ||
</Router> | ||
); | ||
|
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.
@greg-han Looks like you forgot to
git add ShortcutsModal
, yes?