Skip to content

Commit

Permalink
[Partial implementation] Steps to implement issue #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Chopart committed Jul 13, 2021
1 parent c18a8d5 commit c3ff8b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DebugHotKey.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// TODO: Implement debug hotkey
// https://www.npmjs.com/package/react-hotkeys
2 changes: 2 additions & 0 deletions src/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export default class Question extends React.Component {

if (FormUtils.isSection(question) && FormUtils.isAnswerable(question)) {
const answerValue = this._getFirstAnswerValue();

// TODO: if debug mode true then remove this section
if (this.state.expanded && !answerValue) {
// close expanded answerable section that does not have positive answer
this.setState({ expanded: false });
Expand Down
1 change: 1 addition & 0 deletions src/components/wizard/VerticalWizardNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const VerticalWizardNav = ({ steps, onNavigate, currentStep }) => {
<ListGroup>
{steps.map((step, index) => (
<ListGroupItem
// TODO: if debug mode true then set hidden as false
hidden={!FormUtils.isRelevant(step)}
key={'nav' + index}
onClick={() => onNavigate(index)}
Expand Down

0 comments on commit c3ff8b2

Please sign in to comment.