-
Notifications
You must be signed in to change notification settings - Fork 27
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
Issue 376: Updated MUI component to used styled component #433
Issue 376: Updated MUI component to used styled component #433
Conversation
@xscottxbrownx @andycwilliams @leekahung is this all that was needed or are there additional components that need to be replaced? |
I think you have completely misinterpreted Issue #376 The goal of that issue is to get rid of the styled components in those two components/files, and use the MUI based styling (or We are trying to get to and enforce a consistent way of styling/css... |
Also I just realized, that Issue #376 is tied/linked to Issue #219 ... They both import the same styles, so honestly it seems these components would need to be refactored at same time or else they will break. The source of the styled components styling: Components importing/using the styling instead of MUI: Not sure if it would be more efficient to make new components, change the |
Think we could switch this up with MUI data grid https://mui.com/x/react-data-grid/ |
There are a few ways to support custom styles with MUI. Seemed like there were existing overrides in the There was another PR #408 I was working on which requested the removal of
|
I believe I removed all the uses of the |
@leekahung so I have the |
Sounds good |
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.
This all looks good to me. I like the idea of keeping things as close to the MUI docs as possible. We don't really need super sophisticated UI designs for this, beyond getting the point across.
Squashing thx |
f1c12b9
to
5b447b9
Compare
Guess I had chances to look at this before merge and too late now, but for future reference you don't need to pass the theme provider to each individual component. It's already passed in And I'm not a fan of making the variables for |
Issue 376: Updated MUI component to used styled component
This pull requests adds support to the styled components found on the user's document page.
This PR:
Resolves #376
The files this PR effects:
Components
<DocumentTable />
Tests
Currrent there are zero tests for this component
Screenshots (if applicable):