-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(snippet): add custom symbol and toast #287
Conversation
Codecov Report
@@ Coverage Diff @@
## rc #287 +/- ##
=======================================
Coverage 99.95% 99.95%
=======================================
Files 186 186
Lines 2366 2366
Branches 563 563
=======================================
Hits 2365 2365
Misses 1 1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. 👍
Can you add some testcases for symbol
?
components/snippet/snippet.tsx
Outdated
@@ -18,6 +21,9 @@ interface Props { | |||
|
|||
const defaultProps = { | |||
filled: false, | |||
symbol: '$', | |||
toastText: 'Copied to clipboard!', | |||
toastType: 'success', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toastType: 'success', | |
toastType: 'success' as NormalTypes, |
FOR EVERYONE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thank you for your contribution, now it looks easier to use.
PR Checklist
Change information