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

Mu irte for action item form #16

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

jebeni777
Copy link
Collaborator

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

jebeni777 and others added 7 commits November 2, 2020 13:38
Mostly PropTypes and properties of Grid errors
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.
Copy link
Collaborator

@shankj3 shankj3 left a 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
Copy link
Collaborator

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}>
Copy link
Collaborator

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)}
Copy link
Collaborator

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}
Copy link
Collaborator

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
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