dodanie nowych komponentow oraz dodanie walidacji propTypes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import propTypes from 'prop-types';
|
||||
|
||||
const levelMappings = {
|
||||
'N': 'Nice to have',
|
||||
@@ -53,4 +53,12 @@ const SelectedSkill = ({ skill_name, skillId ,letter, onLevelChange, removeSkill
|
||||
);
|
||||
};
|
||||
|
||||
SelectedSkill.propTypes = {
|
||||
skill_name: propTypes.string,
|
||||
skillId: propTypes.number,
|
||||
letter: propTypes.string,
|
||||
onLevelChange: propTypes.func,
|
||||
removeSkillFromList: propTypes.func,
|
||||
};
|
||||
|
||||
export default SelectedSkill;
|
||||
|
||||
Reference in New Issue
Block a user