-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
🔧 invalid props #5948
🔧 invalid props #5948
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
AI-Generated Summary: This pull request removes the 'contentClass' and 'rootClass' props from the NeoModal component in 'libs/ui/src/components/NeoModal/NeoModal.vue', as well as their default values in the 'props' definition. |
It crashes the app on local host and prevent the modal from showing on canary |
props type are incorrect, here the fix const props = withDefaults(
defineProps<{
value: boolean
destroyOnHide?: boolean
canCancel?: boolean
fullScreen?: boolean
contentClass?: string
rootClass?: string
}>(),
{
destroyOnHide: true,
canCancel: true,
fullScreen: false,
contentClass: '',
rootClass: '',
}
) |
Code Climate has analyzed commit f307609 and detected 0 issues on this pull request. View more on Code Climate. |
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.
✅ code lgtm
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type
Context
Before submitting pull request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at b6f43f6
Refactored the
NeoModal
component to remove unnecessary code and improve readability. Used theclass
prop to allow custom styles for different modal types.🤖 Generated by Copilot at b6f43f6