Skip to content

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

Merged
dkireev merged 7 commits intomainfrom
MDS-1086
Apr 17, 2024
Merged

docs: remove generic moon version and paste packages versions [MDS-1086]#180
dkireev merged 7 commits intomainfrom
MDS-1086

Conversation

@dkireev
Copy link
Copy Markdown
Contributor

@dkireev dkireev commented Apr 12, 2024

No description provided.

@changeset-bot
Copy link
Copy Markdown

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
Copy Markdown
Contributor

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.

Comment thread docs/components/header/Version.tsx Outdated
}
return (
<span className="text-moon-14 text-trunks">
{packageVersionFormatted[0]}
Copy link
Copy Markdown
Contributor

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.

Comment thread docs/components/header/Version.tsx Outdated
);
const versionRegex = /(\d+\.\d+\.\d+)$/;

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

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
@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