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

Git and help icon buttons #731

Conversation

VanessaScherma
Copy link
Contributor

Git and help icons added on MenuToolbar.

@@ -88,8 +90,22 @@ function MenuToolbar({
</Typography>

<Box sx={{ flexGrow: 0 }}>
<IconButton
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

>
<GitHubIcon fontSize="inherit"></GitHubIcon>
</IconButton>
<IconButton
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@prasadtalasila
Copy link
Contributor

@VanessaScherma please revert tge changes done to: package.json and .pre-commit.yaml files.

@@ -78,3 +93,12 @@ describe('LinkButtons component with specified size', () => {
evaluateButtonSize(customSize);
});
});

describe('LinkButtons component with specified marginRight', () => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

Copy link
Contributor

@prasadtalasila prasadtalasila left a comment

Choose a reason for hiding this comment

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

@VanessaScherma, thanks for the updates. Please check the comments.

client/yarn.lock Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

please revert changes to this file.

});

interface IconButtonData {
link: string;
icon: React.ReactElement;
name: string;
name: string | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need undefined here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed because we decided to leave the NO_ICON (in LinkIconsLib.tsx) with the undefined name.

Copy link
Contributor

Choose a reason for hiding this comment

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

We talked about using topmenu as names / prefix for the icons. Please use code-github and help as icon names.

Copy link

codeclimate bot commented May 16, 2024

Code Climate has analyzed commit bb79455 and detected 0 issues on this pull request.

View more on Code Climate.

@prasadtalasila prasadtalasila merged commit e53beb2 into INTO-CPS-Association:feature/distributed-demo May 17, 2024
3 checks passed
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.

None yet

2 participants