}
+ component={renderTextField}
+ placeholder={translations.viewPassword.defaultMessage}
fullWidth
autoComplete="off"
disabled={submitting}
@@ -265,8 +256,8 @@ class AssessmentForm extends Component {
}
+ component={renderTextField}
+ placeholder={translations.sessionPassword.defaultMessage}
fullWidth
autoComplete="off"
disabled={submitting}
@@ -284,19 +275,15 @@ class AssessmentForm extends Component {
return (
}
- floatingLabelFixed
+ component={renderSelectField}
+ label={
}
disabled={editing && submitting}
>
{tabs &&
tabs.map((tab) => (
-
+
))}
);
@@ -323,14 +310,13 @@ class AssessmentForm extends Component {
}
+ label={}
disabled={submitting}
/>
{editing && this.renderTabs()}
-
}
+ label={
}
style={styles.flexChild}
disabled={submitting}
afterChange={this.onStartAtChange}
@@ -350,7 +336,7 @@ class AssessmentForm extends Component {
name="end_at"
component={DateTimePicker}
clearable
- floatingLabelText={
}
+ label={
}
style={styles.flexChild}
disabled={submitting}
/>
@@ -359,9 +345,7 @@ class AssessmentForm extends Component {
name="bonus_end_at"
component={DateTimePicker}
clearable
- floatingLabelText={
-
- }
+ label={
}
style={styles.flexChild}
disabled={submitting}
/>
@@ -371,8 +355,8 @@ class AssessmentForm extends Component {
}
+ component={renderTextField}
+ label={
}
type="number"
onWheel={(event) => event.currentTarget.blur()}
style={styles.flexChild}
@@ -380,10 +364,8 @@ class AssessmentForm extends Component {
/>
- }
+ component={renderTextField}
+ label={
}
type="number"
onWheel={(event) => event.currentTarget.blur()}
style={styles.flexChild}
@@ -395,10 +377,9 @@ class AssessmentForm extends Component {
{editing && (
}
- labelPosition="right"
style={styles.toggle}
disabled={submitting}
/>
@@ -406,7 +387,7 @@ class AssessmentForm extends Component {
)
}
- labelPosition="right"
style={styles.toggle}
disabled={!modeSwitching || submitting}
/>
@@ -428,14 +408,13 @@ class AssessmentForm extends Component {
}
- labelPosition="right"
style={styles.toggle}
disabled={submitting}
/>
@@ -444,10 +423,9 @@ class AssessmentForm extends Component {
}
- labelPosition="right"
style={styles.toggle}
disabled={submitting}
/>
@@ -462,28 +440,25 @@ class AssessmentForm extends Component {
}
- labelPosition="right"
style={styles.flexChild}
disabled={submitting}
/>
}
- labelPosition="right"
style={styles.flexChild}
disabled={submitting}
/>
}
- labelPosition="right"
style={styles.flexChild}
disabled={submitting}
/>
@@ -491,10 +466,9 @@ class AssessmentForm extends Component {
}
- labelPosition="right"
style={styles.toggle}
disabled={submitting}
/>
@@ -503,10 +477,9 @@ class AssessmentForm extends Component {
}
- labelPosition="right"
style={styles.toggle}
disabled={submitting}
/>
@@ -520,10 +493,9 @@ class AssessmentForm extends Component {
<>
}
- labelPosition="right"
style={styles.toggle}
disabled={submitting}
/>
@@ -532,12 +504,11 @@ class AssessmentForm extends Component {
}
- labelPosition="right"
style={styles.toggle}
disabled={submitting}
/>
diff --git a/client/app/bundles/course/assessment/containers/MaterialUploader/Material.jsx b/client/app/bundles/course/assessment/containers/MaterialUploader/Material.jsx
index 92f140c052a..645edc60cf3 100644
--- a/client/app/bundles/course/assessment/containers/MaterialUploader/Material.jsx
+++ b/client/app/bundles/course/assessment/containers/MaterialUploader/Material.jsx
@@ -2,32 +2,30 @@ import { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages } from 'react-intl';
import { formatLongDateTime } from 'lib/moment';
-import IconButton from 'material-ui/IconButton';
-import { ListItem } from 'material-ui/List';
-import CircularProgress from 'material-ui/CircularProgress';
-import Avatar from 'material-ui/Avatar';
-import ActionAssignment from 'material-ui/svg-icons/action/assignment';
-import DeleteIcon from 'material-ui/svg-icons/action/delete';
+import {
+ Avatar,
+ CircularProgress,
+ IconButton,
+ ListItem,
+ ListItemAvatar,
+ ListItemText,
+ ListItemSecondaryAction,
+} from '@mui/material';
+import Assignment from '@mui/icons-material/Assignment';
+import Delete from '@mui/icons-material/Delete';
import ReactTooltip from 'react-tooltip';
const styles = {
- root: {
- fontSize: 14,
- lineHeight: '14px',
- },
- innerDiv: {
- paddingTop: 8,
- paddingBottom: 8,
- },
avatar: {
- top: 8,
+ height: '32px',
+ width: '32px',
},
iconButton: {
+ color: 'black',
width: 24,
height: 24,
padding: 4,
marginRight: 16,
- top: 8,
},
secondaryText: {
fontSize: 12,
@@ -71,11 +69,11 @@ class Material extends Component {
return (
- } />
- }
- secondaryText={this.renderSecondaryText()}
- style={styles.root}
- innerDivStyle={styles.innerDiv}
- />
+
+
+
+
+
+
+
+ {this.renderIcon()}
+
);
}
}
diff --git a/client/app/bundles/course/assessment/containers/MaterialUploader/MaterialList.jsx b/client/app/bundles/course/assessment/containers/MaterialUploader/MaterialList.jsx
index c2e436cbda9..73864ecedc9 100644
--- a/client/app/bundles/course/assessment/containers/MaterialUploader/MaterialList.jsx
+++ b/client/app/bundles/course/assessment/containers/MaterialUploader/MaterialList.jsx
@@ -1,10 +1,7 @@
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages } from 'react-intl';
-import { List } from 'material-ui/List';
-import Subheader from 'material-ui/Subheader';
-import FlatButton from 'material-ui/FlatButton';
-import Divider from 'material-ui/Divider';
-import ContentAdd from 'material-ui/svg-icons/content/add';
+import { Button, List, ListSubheader, Divider } from '@mui/material';
+import Add from '@mui/icons-material/Add';
import NotificationBar, {
notificationShape,
} from 'lib/components/NotificationBar';
@@ -12,6 +9,10 @@ import ReactTooltip from 'react-tooltip';
import Material from './Material';
const translations = defineMessages({
+ addFiles: {
+ id: 'course.material.addFiles',
+ defaultMessage: 'Add Files',
+ },
disableNewFile: {
id: 'course.material.disableNewFile',
defaultMessage:
@@ -105,14 +106,14 @@ const MaterialList = (props) => {
data-for="add-files-button"
data-tip-disable={enableMaterialsAction}
>
- }
- containerElement="label"
+ startIcon={}
style={styles.newFileButton}
- disabled={!enableMaterialsAction}
>
+
{
onChange={onFileInputChange}
disabled={!enableMaterialsAction}
/>
-
+