fix: allow form label and name to differ

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Sky020
2020-09-09 17:12:48 +01:00
committed by Ahmad Abdolsaheb
parent d765fa704b
commit c4240cdf2f
6 changed files with 37 additions and 28 deletions

View File

@@ -18,8 +18,11 @@ const propTypes = {
};
// back end challenges and front end projects use a single form field
const solutionField = ['solution'];
const backEndProjectFields = ['solution', 'githubLink'];
const solutionField = [{ name: 'solution', label: 'Solution Link' }];
const backEndProjectFields = [
{ name: 'solution', label: 'Solution Link' },
{ name: 'githubLink', label: 'GitHub Link' }
];
const options = {
types: {