Skip to content

Commit

Permalink
remove hardcord from error
Browse files Browse the repository at this point in the history
  • Loading branch information
snide committed May 4, 2018
1 parent 505b5ad commit aef0b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/prop_types/requires_aria_label.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ export const requiresAriaLabel = (action, label) => {
const validator = (props, propName, componentName) => {
if (props[action] && !props[label]) {
return new Error(
`Please provide an aria label to compliment your iconOnClick ` +
`action in ${componentName}`
`Please provide an aria label to compliment your ${action} ` +
`prop in ${componentName}`
);
}

Expand Down

0 comments on commit aef0b9f

Please sign in to comment.