@pie-lib/rubric 0.28.3-next.2 → 0.28.4-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import Menu from '@material-ui/core/Menu';
2
- import MenuItem from '@material-ui/core/MenuItem';
3
- import MoreVertIcon from '@material-ui/icons/MoreVert';
4
- import MoreHorizIcon from '@material-ui/icons/MoreHoriz';
5
- import IconButton from '@material-ui/core/IconButton';
1
+ import Menu from '@mui/material/Menu';
2
+ import MenuItem from '@mui/material/MenuItem';
3
+ import MoreVertIcon from '@mui/icons-material/MoreVert';
4
+ import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
5
+ import IconButton from '@mui/material/IconButton';
6
6
  import PropTypes from 'prop-types';
7
7
  import React from 'react';
8
8
 
@@ -10,7 +10,6 @@ export class IconMenu extends React.Component {
10
10
  static propTypes = {
11
11
  opts: PropTypes.object,
12
12
  onClick: PropTypes.func.isRequired,
13
- classes: PropTypes.object.isRequired,
14
13
  };
15
14
 
16
15
  constructor(props) {
@@ -26,7 +25,7 @@ export class IconMenu extends React.Component {
26
25
  handleRequestClose = () => this.setState({ open: false });
27
26
 
28
27
  render() {
29
- const { opts, onClick, classes } = this.props;
28
+ const { opts, onClick } = this.props;
30
29
  const { open, anchorEl } = this.state;
31
30
  const keys = Object.keys(opts) || [];
32
31
 
@@ -40,7 +39,7 @@ export class IconMenu extends React.Component {
40
39
  return (
41
40
  <div>
42
41
  <div onClick={this.handleClick}>
43
- <IconButton className={classes.icon}>
42
+ <IconButton size="large">
44
43
  {open ? <MoreVertIcon color={iconColor} /> : <MoreHorizIcon color={iconColor} />}
45
44
  </IconButton>
46
45
  </div>
@@ -69,16 +68,11 @@ export class IconMenu extends React.Component {
69
68
  export default class PointMenu extends React.Component {
70
69
  static propTypes = {
71
70
  onChange: PropTypes.func.isRequired,
72
- classes: PropTypes.object.isRequired,
73
71
  showSampleAnswer: PropTypes.bool.isRequired,
74
72
  };
75
73
 
76
- static defaultProps = {
77
- classes: {},
78
- };
79
-
80
74
  render() {
81
- const { onChange, classes, showSampleAnswer } = this.props;
75
+ const { onChange, showSampleAnswer } = this.props;
82
76
  const sampleText = showSampleAnswer ? 'Provide Sample Response' : 'Remove Sample Response';
83
77
 
84
78
  return (
@@ -87,7 +81,6 @@ export default class PointMenu extends React.Component {
87
81
  opts={{
88
82
  sample: sampleText,
89
83
  }}
90
- classes={classes}
91
84
  />
92
85
  );
93
86
  }