Skip to content

Commit

Permalink
fix: type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Oct 23, 2023
1 parent fab3d5c commit b1613b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cypress/fixtures/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ export const PUBLISHED_ITEM: ItemForTest = {
item,
createdAt: new Date(),
creator: MEMBERS.ANNA,
totalViews: 0,
},
memberships: [
{
Expand Down Expand Up @@ -896,6 +897,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [
item,
createdAt: new Date(),
creator: MEMBERS.ANNA,
totalViews: 0,
},
memberships: [
{
Expand Down Expand Up @@ -934,6 +936,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [
item,
createdAt: new Date(),
creator: MEMBERS.ANNA,
totalViews: 0,
},
memberships: [
{
Expand Down Expand Up @@ -972,6 +975,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [
item,
createdAt: new Date(),
creator: MEMBERS.ANNA,
totalViews: 0,
},
memberships: [
{
Expand Down Expand Up @@ -1010,6 +1014,7 @@ export const PUBLISHED_ITEMS_WITH_CC_LICENSE: ItemForTest[] = [
item,
createdAt: new Date(),
creator: MEMBERS.ANNA,
totalViews: 0,
},
memberships: [
{
Expand Down
4 changes: 2 additions & 2 deletions src/components/main/ItemTypeTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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}
/>
);

Expand Down

0 comments on commit b1613b4

Please sign in to comment.