Skip to content

Commit

Permalink
refactor: rename variable for clarity in Tutorials.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Jan 7, 2020
1 parent 999a934 commit d9564da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Documentation/Tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default function Tutorials({ compact, tutorials }) {

return (
<Wrapper compact={compact}>
{tutorialsData.map(([key, value]) => {
const ButtonComponent = icons[key] || ExternalButton
{tutorialsData.map(([k, value]) => {
const ButtonComponent = icons[k] || ExternalButton

return (
<ButtonComponent
Expand All @@ -21,8 +21,8 @@ export default function Tutorials({ compact, tutorials }) {
rel="noopener nofollow"
compact={compact}
>
{icons[key] && <i />}
{!compact && `Run in ${startCase(key)}`}
{icons[k] && <i />}
{!compact && `Run in ${startCase(k)}`}
</ButtonComponent>
)
})}
Expand Down

0 comments on commit d9564da

Please sign in to comment.