dodanie nowych komponentow oraz dodanie walidacji propTypes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jakub Kaniecki
2024-07-08 20:52:43 +02:00
parent 10103fb1a1
commit 256bd8a0ee
31 changed files with 491 additions and 214 deletions

View File

@@ -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;