Skip to content

Commit

Permalink
fix: solve Thumbnail visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrba committed Aug 16, 2022
1 parent 46c1df8 commit 1d176f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/components/common/UserSwitchWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const UserSwitchWrapper = ({ ButtonContent }) => {
const { t } = useTranslation();
const { mutateAsync: signOut } = useMutation(MUTATION_KEYS.SIGN_OUT);
const { mutate: switchMember } = useMutation(MUTATION_KEYS.SWITCH_MEMBER);

console.log('MMM');
console.log(member);
return (
<>
<GraaspUserSwitch
Expand Down
20 changes: 10 additions & 10 deletions src/components/main/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ const Item = ({ item, memberships }) => {
const { id, name, description, extra } = item;
const { t } = useTranslation();

const ThumbnailComponent = Thumbnail({
id: item.id,
extra,
// maxWidth: 30,
// maxHeight: 30,
alt: t('thumbnail'),
defaultImage: DEFAULT_IMAGE_SRC,
useThumbnail: hooks.useItemThumbnail,
className: classes.thumbnail,
});
const ThumbnailComponent = (
<Thumbnail
id={item.id}
extra
alt={t('thumbnail')}
defaultImage={DEFAULT_IMAGE_SRC}
useThumbnail={hooks.useItemThumbnail}
className={classes.thumbnail}
/>
);

const { data: member } = useContext(CurrentUserContext);
const enableEdition = isItemUpdateAllowedForUser({
Expand Down

0 comments on commit 1d176f2

Please sign in to comment.