Skip to content

Commit

Permalink
fix(color picker): changed color picker msg
Browse files Browse the repository at this point in the history
  • Loading branch information
opensrc0 committed Apr 6, 2024
1 parent ce48dcd commit 46c4d08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion __app/component/ColorPicker/ColorPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ColorPicker.propTypes = {
ColorPicker.defaultProps = {
successCb: () => {},
failureCb: () => {},
successMsg: 'Color copied successfully!!',
successMsg: 'Color picked successfully!!',
failureMsg: { ...failureMsgDefault },
};

Expand Down
8 changes: 4 additions & 4 deletions __app/component/ColorPicker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
```js
<ColorPicker
successCb={successCb}
successMsg="Color copied successfully!!"
successMsg="Color picked successfully!!"
>
Pass clickable(button, anchor etc) element here to bind onClick event
</ColorPicker>
Expand All @@ -17,13 +17,13 @@
```js
const successCb = ({ msgType, msg, data }) => {
console.log(msgType); // Success
console.log(msg); // Color copied successfully!!
console.log(msg); // Color picked successfully!!
console.log(data); // #FFFFFF (Color Code)
}

<ColorPicker
successCb={successCb}
successMsg="Color copied successfully!!"
successMsg="Color picked successfully!!"
>
<button type="button">Click here to start Color Picker</button>
</ColorPicker>
Expand Down Expand Up @@ -80,7 +80,7 @@ Failure can happend due to multiple reasons, due to that reason ```failureMsg```
```js
<ColorPicker
successCb={successCb}
successMsg="Color copied successfully!!"
successMsg="Color picked successfully!!"
failureCb={failureCb}
failureMsg={{
unSupported: 'Your device is not supporting Color Picker feature',
Expand Down

0 comments on commit 46c4d08

Please sign in to comment.