Skip to content
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

Refactor add form #103

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Refactor add form #103

wants to merge 3 commits into from

Conversation

AltomHussain
Copy link
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

Copy link
Collaborator

@petemcfarlane petemcfarlane left a comment

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
Collaborator

Choose a reason for hiding this comment

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

👍

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

import fakeData from "../fakeData.json";
Copy link
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