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

resolve code duplicate issue #807

Closed
wants to merge 2 commits into from

Conversation

KhudaDad414
Copy link
Member

@KhudaDad414 KhudaDad414 commented Oct 5, 2023

@changeset-bot
Copy link

changeset-bot bot commented Oct 5, 2023

⚠️ No Changeset found

Latest commit: 91b13e1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@netlify
Copy link

netlify bot commented Oct 5, 2023

Deploy Preview for asyncapi-studio-design-system ready!

Name Link
🔨 Latest commit 91b13e1
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-studio-design-system/deploys/6525473be848f10007a75f3c
😎 Deploy Preview https://deploy-preview-807--asyncapi-studio-design-system.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.

@netlify
Copy link

netlify bot commented Oct 5, 2023

Deploy Preview for modest-rosalind-098b67 ready!

Name Link
🔨 Latest commit 91b13e1
🔍 Latest deploy log https://app.netlify.com/sites/modest-rosalind-098b67/deploys/6525473bd5dea40008c77f35
😎 Deploy Preview https://deploy-preview-807--modest-rosalind-098b67.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.

@sonarcloud
Copy link

sonarcloud bot commented Oct 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@KhudaDad414
Copy link
Member Author

@fmvilas 👁️ 🙏

);
};

const V3OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({
Copy link
Collaborator

Choose a reason for hiding this comment

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

@KhudaDad414 we will have more and more duplicated code as we are in the transition period to V3.
We should just add an exception in SonarCloud, and clean after ending support for V2.
Not sure if there is an other clean way to do it.

);
};

const V3OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Naming suggestion, I find OperationNavigationV3 more readable than V3OperationsNavigation

@KhudaDad414
Copy link
Member Author

#821 resolves the issue.

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