-
Notifications
You must be signed in to change notification settings - Fork 5
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#38/change material-ui version to mui 5 #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the requested things/issues
import CssBaseline from '@material-ui/core/CssBaseline'; | ||
import { ThemeProvider } from '@material-ui/core/styles'; | ||
import CssBaseline from '@mui/material/CssBaseline'; | ||
import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need StyledEngineProvider?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It gives custom styles precedence over MUI
src/layout/TopBar/TopBar.js
Outdated
label="Organization" | ||
select | ||
> | ||
<MenuItem> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is only None option hard coded here for Super Admin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we don't have any api to fetch all org names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be an API that we already use in TP as well as Insights code. So it should be similar here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried and it was throwing 404 confirmed with BE as well that there's no API in buildly.io to fetch all orgs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want a global admin filter we need to have a list of organizations. Without it, you cannot create a dropdown for global admin.
src/layout/TopBar/TopBar.js
Outdated
</IconButton> | ||
</Link> | ||
<IconButton aria-label="logout" color="inherit" onClick={handleLogoutClick}> | ||
{isSuperAdmin && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Radhika can you tell me screen resolution, for me all medium and large screens placement is proper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1320 x 1000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,17 +1,22 @@ | |||
/* eslint-disable import/no-named-as-default-member */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these ignore and resolve the issues in the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried resolving some are still throwing errors after trying the solution mentioned in the documentation
@@ -1,19 +1,28 @@ | |||
/* eslint-disable import/no-named-as-default-member */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these ignores and fix the file issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried resolving some are still throwing errors after trying the solution mentioned in the documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Purpose
change material-ui version to mui 5
Ticket number
#38