Skip to content

Refactor add form#103

Open
AltomHussain wants to merge 3 commits into
devfrom
Refactor-AddForm
Open

Refactor add form#103
AltomHussain wants to merge 3 commits into
devfrom
Refactor-AddForm

Conversation

@AltomHussain

Copy link
Copy Markdown
Collaborator

What changes have you made?

Provide a short description of the changes you made and, if necessary, the reasons for these changes.

  • Renamed the AddForm.js component to LearningObjectiveAddForm.js
  • Replaced the repeated skills option within the select dropdown menu in mapped skills
    -Removed unused code and all console.logs

@petemcfarlane petemcfarlane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a pesky console.log added - seems a shame since you're removing them in one of the commits!

<option>Select a skill</option>
{skills.map((skill) => (
<option value={skill}>{skillLabel(skill)}</option>
))}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread client/src/components/StudentResultsDisplay.js
// import fakeData from "../fakeData.json";
import AddForm from "./AddForm";

import fakeData from "../fakeData.json";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this is loading dummy data for testing. Is this needed here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants