Skip to content

Commit

Permalink
fix: solve small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrba committed Aug 16, 2022
1 parent 58f847e commit dfe89cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/item/header/ItemHeaderActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import IconButton from '@material-ui/core/IconButton';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import EditIcon from '@material-ui/icons/Edit';
import { Record } from 'immutable';
import { Map, Record } from 'immutable';
import InfoIcon from '@material-ui/icons/Info';
import Tooltip from '@material-ui/core/Tooltip';
import ForumIcon from '@material-ui/icons/Forum';
Expand Down
4 changes: 2 additions & 2 deletions src/components/main/Item.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { Record } from 'immutable';
import { Card as GraaspCard, Thumbnail } from '@graasp/ui';
import truncate from 'lodash.truncate';
import { makeStyles } from '@material-ui/core/styles';
Expand Down Expand Up @@ -109,7 +108,7 @@ const Item = ({ item, memberships }) => {
};

Item.propTypes = {
item: PropTypes.instanceOf(Record).isRequiredshape({
item: PropTypes.shape({
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
Expand All @@ -118,6 +117,7 @@ Item.propTypes = {
extra: PropTypes.shape({
image: PropTypes.string.isRequired,
}).isRequired,
toJS: PropTypes.func,
}).isRequired,
memberships: PropTypes.arrayOf(PropTypes.shape({})).isRequired,
};
Expand Down

0 comments on commit dfe89cb

Please sign in to comment.