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

docs: remove generic moon version and paste packages versions [MDS-1086] #180

Merged
merged 7 commits into from
Apr 17, 2024

Conversation

dkireev
Copy link
Collaborator

@dkireev dkireev commented Apr 12, 2024

No description provided.

Copy link

changeset-bot bot commented Apr 12, 2024

🦋 Changeset detected

Latest commit: 780ca50

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
docs Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

],
[packageName],
);
const packageVersionFormatted = useMemo(
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. Extract a string from the function.

}
return (
<span className="text-moon-14 text-trunks">
{packageVersionFormatted[0]}
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. To avoid doing that in the render.

);
const versionRegex = /(\d+\.\d+\.\d+)$/;

const Version = ({ packageName }: { packageName: string }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Create a type here to avoid "as" below.

@dkireev dkireev merged commit f557d96 into main Apr 17, 2024
5 checks passed
@dkireev dkireev deleted the MDS-1086 branch April 17, 2024 11:40
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.

2 participants