-
Notifications
You must be signed in to change notification settings - Fork 0
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
Mu irte for action item form #16
base: development
Are you sure you want to change the base?
Conversation
Mostly PropTypes and properties of Grid errors
Deploying development
…portal into MUIrte-for-ActionItemForm
Added MUI Rich Text editor to ActionItemForm and ActionItemModal for assignment descriptions and created defaultTheme for MUI theme in the style pages. Added Rich Text rendering to ViewMoreModal and ActionItemCard making backward compatible and adjusting the styles for AssignmentList to accomodate changes.
…p/participant-portal into MUIrte-for-ActionItemForm
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.
Few cleanup comments / questions. This is mostly good to go!
]} | ||
/> | ||
</MuiThemeProvider> | ||
{/* <TextField |
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.
You can take out the old commented code now that the new code works!
multiline | ||
rows={4} | ||
/> | ||
<MuiThemeProvider theme={defaultTheme}> |
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.
do we want to make this backwards compatible as well? if so, can do the ternary here too
{isCaseNote | ||
? renderRichText(description) | ||
: renderReadOnlyTextField(description)} | ||
{renderRichText(description)} |
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.
just to confirm - this ViewMoreModal
isn't used anywhere else, yeS?
@@ -219,7 +222,7 @@ function ActionItemCard({ | |||
> | |||
<Grid item className={classes.descriptionStyle} zeroMinWidth> | |||
<Typography noWrap variant="body1" style={{ fontSize: '14px' }}> | |||
{description} | |||
{description[0] === '{' ? renderRichText(description) : description} |
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 would add a code comment above, just saying that this is for backwards compatibility
Added more backward compatability between TextField and RichText
Added Rich Text Editor for Assignment
Added MUI-rte to ActionItemForm and ActionItemModal for assignment descriptions. Created defaultTheme for MUITheme in corresponding styles.js pages. Added Rich Text rendering on ActionItemCard and ViewMoreModal making them backwards compatible and adjusting corresponding styles.js pages to accommodate changes.
Fixes Issue #12