diff --git a/cypress/fixtures/items.ts b/cypress/fixtures/items.ts index 82da12d75..eec32792e 100644 --- a/cypress/fixtures/items.ts +++ b/cypress/fixtures/items.ts @@ -686,6 +686,7 @@ export const PUBLISHED_ITEM: ItemForTest = { item, createdAt: new Date(), creator: MEMBERS.ANNA, + totalViews: 0, }, memberships: [ { @@ -896,6 +897,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [ item, createdAt: new Date(), creator: MEMBERS.ANNA, + totalViews: 0, }, memberships: [ { @@ -934,6 +936,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [ item, createdAt: new Date(), creator: MEMBERS.ANNA, + totalViews: 0, }, memberships: [ { @@ -972,6 +975,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [ item, createdAt: new Date(), creator: MEMBERS.ANNA, + totalViews: 0, }, memberships: [ { @@ -1010,6 +1014,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [ item, createdAt: new Date(), creator: MEMBERS.ANNA, + totalViews: 0, }, memberships: [ { diff --git a/src/components/main/ItemTypeTabs.tsx b/src/components/main/ItemTypeTabs.tsx index 95e88a1c1..9df36ff7c 100644 --- a/src/components/main/ItemTypeTabs.tsx +++ b/src/components/main/ItemTypeTabs.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import { Tab, Tabs, styled } from '@mui/material'; -import { ItemType, MimeTypes } from '@graasp/sdk'; +import { ItemType, LocalFileItemExtra, MimeTypes } from '@graasp/sdk'; import { ItemIcon } from '@graasp/ui'; import { useBuilderTranslation } from '../../config/i18n'; @@ -53,7 +53,7 @@ const ItemTypeTabs = ({ onTypeChange, initialValue }: Props): JSX.Element => { alt={translateBuilder(BUILDER.NEW_ITEM_ZIP_TAB_TEXT)} type={ItemType.LOCAL_FILE} sx={{ mb: 0 }} - extra={{ file: { mimetype: MimeTypes.ZIP } }} + extra={{ file: { mimetype: MimeTypes.ZIP } } as LocalFileItemExtra} /> );