Skip to content
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

Merged
merged 2 commits into from
May 13, 2023
Merged

🔧 invalid props #5948

merged 2 commits into from
May 13, 2023

Conversation

daiagi
Copy link
Contributor

@daiagi daiagi commented May 13, 2023

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

  • Bugfix
  • Feature
  • Refactoring

Context

Before submitting pull request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've tried to respect high code quality standards
  • I've didn't break any original functionality

Optional

  • I've tested it at </ksm/collection>
  • I've tested PR on mobile
  • I've written unit tests 🧪
  • I've found edge cases

Had issue bounty label?

  • Fill up your KSM address: Payout

Community participation

Screenshot 📸

  • My fix has changed something on UI; a screenshot is best to understand changes for others.

Copilot Summary

🤖 Generated by Copilot at b6f43f6

Refactored the NeoModal component to remove unnecessary code and improve readability. Used the class prop to allow custom styles for different modal types.

🤖 Generated by Copilot at b6f43f6

Oh we're the crew of the NeoModal, we like to keep things neat
We don't need no redundant props or data to repeat
We heave away and simplify the template and the script
We only use the class prop to give our modal some zip

@daiagi daiagi requested a review from a team as a code owner May 13, 2023 10:17
@daiagi daiagi requested review from preschian and vikiival and removed request for a team May 13, 2023 10:17
@daiagi daiagi enabled auto-merge May 13, 2023 10:17
@kodabot
Copy link
Collaborator

kodabot commented May 13, 2023

SUCCESS @daiagi PR for issue #5947 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

@netlify
Copy link

netlify bot commented May 13, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit f307609
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/645f9a5e1142220008e612b7
😎 Deploy Preview https://deploy-preview-5948--koda-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@reviewpad
Copy link
Contributor

reviewpad bot commented May 13, 2023

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.

@reviewpad reviewpad bot added small Pull request is small waiting-for-review labels May 13, 2023
@roiLeo
Copy link
Contributor

roiLeo commented May 13, 2023

Hmm.. I think it can be used as class prop (see oruga Modal Doc)

@daiagi
Copy link
Contributor Author

daiagi commented May 13, 2023

It crashes the app on local host and prevent the modal from showing on canary

@roiLeo
Copy link
Contributor

roiLeo commented May 13, 2023

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: '',
  }
)

@codeclimate
Copy link

codeclimate bot commented May 13, 2023

Code Climate has analyzed commit f307609 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ code lgtm

@daiagi daiagi merged commit d33a05b into main May 13, 2023
13 of 14 checks passed
@daiagi daiagi deleted the fix--NeoModal-bug branch May 13, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Pull request is small waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Neo Modal invalid props
4 participants