Skip to content

Commit

Permalink
chore(content-explorer): Migrate ContentExplorer
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-in-a-box committed Jan 27, 2025
1 parent cb87cab commit ecbd64e
Show file tree
Hide file tree
Showing 8 changed files with 3,437 additions and 863 deletions.
1,980 changes: 1,980 additions & 0 deletions src/elements/content-explorer/ContentExplorer.js.flow

Large diffs are not rendered by default.

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/elements/content-explorer/PreviewDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useIntl } from 'react-intl';
import Modal from 'react-modal';
import cloneDeep from 'lodash/cloneDeep';

import { AxiosRequestConfig, AxiosResponse } from 'axios';
import ContentPreview, { ContentPreviewProps } from '../content-preview';
import { TYPE_FILE, CLASS_MODAL_CONTENT_FULL_BLEED, CLASS_MODAL_OVERLAY, CLASS_MODAL } from '../../constants';
import type { Token, BoxItem, Collection } from '../../common/types/core';
Expand All @@ -22,12 +23,12 @@ export interface PreviewDialogProps {
isTouch: boolean;
item: BoxItem;
onCancel: () => void;
onDownload: () => void;
onDownload: (item: BoxItem) => void;
onPreview: (data: unknown) => void;
parentElement: HTMLElement;
previewLibraryVersion: string;
requestInterceptor?: () => void;
responseInterceptor?: () => void;
requestInterceptor?: (response: AxiosResponse) => void;
responseInterceptor?: (config: AxiosRequestConfig) => void;
sharedLink?: string;
sharedLinkPassword?: string;
staticHost: string;
Expand Down
4 changes: 2 additions & 2 deletions src/elements/content-explorer/ShareDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Button, Modal as BlueprintModal, Text } from '@box/blueprint-web';

import ShareAccessSelect from '../common/share-access-select';
import { CLASS_MODAL_CONTENT, CLASS_MODAL_OVERLAY, CLASS_MODAL } from '../../constants';
import type { BoxItem } from '../../common/types/core';
import type { Access, BoxItem } from '../../common/types/core';

import messages from '../common/messages';

Expand All @@ -19,7 +19,7 @@ export interface ShareDialogProps {
isOpen: boolean;
item: BoxItem;
onCancel: () => void;
onShareAccessChange: () => void;
onShareAccessChange: (access: Access) => void;
parentElement: HTMLElement;
}

Expand Down
Loading

0 comments on commit ecbd64e

Please sign in to comment.