-
-
Notifications
You must be signed in to change notification settings - Fork 681
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: migrate case studies #2861
feat: migrate case studies #2861
Conversation
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
components/MDX.tsx
Outdated
@@ -148,7 +148,7 @@ function CodeComponent({ children, className = '', metastring = '', ...rest }: C | |||
caption={caption} | |||
className={`${className || ''} rounded`} | |||
language={language} | |||
showLineNumbers={children.split('\n').length > 2} | |||
showLineNumbers={children && typeof children === 'string' && children.split('\n').length > 2 ? true : undefined} |
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.
Why are we doing this?
@akshatnema @anshgoyalevil code component issue fixed |
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.
@vishvamsinh28 please remove adopters.json file
@sambhavgupta0705 Done |
components/MDX.tsx
Outdated
pre: (props: React.HTMLProps<HTMLPreElement>) => { | ||
return CodeComponent((props.children as React.ReactElement)?.props); | ||
}, |
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.
Instead of using return
in block, directly return the CodeComponent using arrow function.
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.
@akshatnema css issue fixed |
components/MDX.tsx
Outdated
pre: (props: React.HTMLProps<HTMLPreElement>) => { | ||
return CodeComponent((props.children as React.ReactElement)?.props); | ||
}, |
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.
pre: (props: React.HTMLProps<HTMLPreElement>) => { | |
return CodeComponent((props.children as React.ReactElement)?.props); | |
}, | |
pre: (props: React.HTMLProps<HTMLPreElement>) => CodeComponent((props.children as React.ReactElement)?.props), |
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.
I actually made this change but why it wasn't included in the commit 🤔 lemme push changes again
/rtm |
migrated case studies