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

feat: migrate logos, slack and roadmap components to typescript #2763

Merged
merged 11 commits into from
Mar 16, 2024

Conversation

anshgoyalevil
Copy link
Member

Description

  • This PR migrates the logos, slack, and roadmap components to typescript

Copy link

netlify bot commented Mar 12, 2024

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a7beb68
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/65f315d4d2f6b700080dbb70
😎 Deploy Preview https://deploy-preview-2763--asyncapi-website.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 configuration.

components/Modal.tsx Outdated Show resolved Hide resolved

/**
* @description Modal component.
* @param {ModalProps} props - The props for the Modal component.
Copy link
Member

Choose a reason for hiding this comment

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

define each prop inside the jsdoc comment. Do it for every component.

@@ -0,0 +1,59 @@
/**
* @description Logo for Adidas
Copy link
Member

Choose a reason for hiding this comment

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

Add props.className param in jsdocs. Do it for every component.

Copy link
Member Author

Choose a reason for hiding this comment

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

done for all

Copy link
Member

Choose a reason for hiding this comment

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

It's not updated yet.

Copy link
Member Author

Choose a reason for hiding this comment

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

ohh missed the logos.

avatar='/img/avatars/fmvilas.webp'
name='fmvilas'
text={
<>
Copy link
Member

Choose a reason for hiding this comment

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

Use span tag instead of plain <> element.


import IconArrowRight from '../icons/ArrowRight';
import Modal from '../Modal';
/* eslint-disable import/no-cycle*/
Copy link
Member

Choose a reason for hiding this comment

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

Add a extra comment on why we are adding recursion on these components.

Comment on lines 53 to 55
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' strokeWidth={1.5} stroke='currentColor' className='-mt-0.5 mr-2 inline-block size-6 text-green-600'>
<path strokeLinecap='round' strokeLinejoin='round' d='M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z' />
</svg>
Copy link
Member

Choose a reason for hiding this comment

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

Can you please a separate functional component inside this file itself returning this icon? You can use React.ReactElement as return type for that component.

* @param {boolean} props.isCollapsed - Whether the item is collapsed.
* @param {function} props.onClickCollapse - Function to handle click on collapse.
*/
function Pill({
Copy link
Member

Choose a reason for hiding this comment

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

Create a separate file for this component as it should be handled separately, looking into the depth of code it has.

@anshgoyalevil
Copy link
Member Author

Made the changes

@akshatnema
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit be9e29c into asyncapi:migrate-ts Mar 16, 2024
13 checks passed
@anshgoyalevil anshgoyalevil deleted the lrs branch April 28, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants