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

fix: fix rendered code when user defined props are not passed #13

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

godnondsilva
Copy link
Contributor

@godnondsilva godnondsilva commented Mar 20, 2024

Problem Description

If the user does not pass any custom props, then the generated code will have an extra comma (,)
Example:

Button.mist.css

@scope (.button) {
  button:scope {
    /* Default style */
    font-size: 1rem;
    border-radius: 0.25rem;
  }
}

Button.mist.tsx

export function Button ({ className, , ...props }: Props) {

Video Explanation

IMAGE ALT TEXT HERE
Timestamp: 3:32 - 3:52
Credits: Josh tried coding

@typicode typicode merged commit 173e593 into typicode:main Mar 21, 2024
@typicode
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants