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

Replace makeStyles with styled in ReportComplete for MUI v5 compatibi… #596

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abubakkariiui
Copy link

This commit transitions the ReportComplete component styling approach from using makeStyles to the styled API provided by Material-UI v5. The change is part of an effort to align with the latest best practices and features offered by Material-UI, ensuring greater consistency and ease of theme integration across the project.

…lity

This commit transitions the ReportComplete component styling approach from using makeStyles to the styled API provided by Material-UI v5. The change is part of an effort to align with the latest best practices and features offered by Material-UI, ensuring greater consistency and ease of theme integration across the project.
<Collapse in={expanded} timeout="auto" unmountOnExit>
<Paper className={classes.paper}>
<StyledPaper>
Copy link

Choose a reason for hiding this comment

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

Suggested change
<StyledPaper>
<Paper sx={{ bgColor: '#fff', p: 2 }}>

I think it is better to use sx prop instead of a styled component so that it can be easier to sync with the theme. ( I think even the background color should some from the theme as well)

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