Skip to content

Commit

Permalink
chore: fix key error
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Dec 16, 2024
1 parent a9d3a77 commit 8e5a7d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions src/pages/skills/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,35 +95,46 @@ const Skills = (props) => {
<div className="col-lg-6 col-md-12">
<SkillBar
key="1"
id="1"
pct="100"
description="Django, React, Redux, Angular, Ionic, WordPress"
/>
<SkillBar key="2" pct="100" description="Bootstrap, D3, Underscore.js" />
<SkillBar
key="2"
id="2"
pct="100"
description="Bootstrap, D3, Underscore.js"
/>
<SkillBar
key="3"
id="3"
pct="100"
description="MySQL, MongoDB, Hadoop, MS-SQL, Transact-SQL "
/>
<SkillBar
key="4"
id="4"
pct="90"
description="AWS, Boto3, Linux, Bash, Ansible, Jenkins, Chef, Puppet"
/>
</div>
<div className="col-lg-6 col-md-12">
<SkillBar key="5" pct="100" description="Open edX® Platform" />
<SkillBar key="5" id="5" pct="100" description="Open edX® Platform" />
<SkillBar
key="6"
id="6"
pct="100"
description="Javascript, Python, PHP, VBA, VB .Net, ANSI C, C++"
/>
<SkillBar
key="7"
id="7"
pct="100"
description="Octave, MatLab, MS Excel, MS Excel VBA"
/>
<SkillBar
key="8"
id="8"
pct="100"
description="English (Native) / Spanish (professional proficiency)"
/>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/skills/skillBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import drawBar from './drawBar'

const SkillBar = (props) => {
const ref = useRef()
const keyName = 'skill-bar-' + props.key
const keyName = 'skill-bar-' + props.id
useEffect(() => drawBar(ref))

return (
Expand All @@ -23,6 +23,7 @@ const SkillBar = (props) => {

SkillBar.propTypes = {
key: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
}

Expand Down

0 comments on commit 8e5a7d1

Please sign in to comment.