Skip to content

Mu irte for action item form - #16

Open
jebeni777 wants to merge 8 commits into
developmentfrom
MUIrte-for-ActionItemForm
Open

Mu irte for action item form#16
jebeni777 wants to merge 8 commits into
developmentfrom
MUIrte-for-ActionItemForm

Conversation

@jebeni777

Copy link
Copy Markdown
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.

@shankj3 shankj3 left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

<Grid item className={classes.descriptionStyle} zeroMinWidth>
<Typography noWrap variant="body1" style={{ fontSize: '14px' }}>
{description}
{description[0] === '{' ? renderRichText(description) : description}

Copy link
Copy Markdown
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