Skip to content

Commit 7bbe8f3

Browse files
committed
fix: restrict type
1 parent 97b1e57 commit 7bbe8f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/elements/content-sharing/ContentSharingV2.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { convertCollabsResponse, convertItemResponse } from './utils';
1515

1616
import type { ElementsXhrError } from '../../common/types/api';
1717
import type { Collaborations, ItemType } from '../../common/types/core';
18-
import type { USMConfig } from '../../features/unified-share-modal/flowTypes';
1918
import type { AvatarURLMap } from './types';
2019

2120
import messages from './messages';
@@ -26,14 +25,14 @@ export interface ContentSharingV2Props {
2625
/** children - Children for the element to open the Unified Share Modal */
2726
children?: React.ReactElement;
2827
/** config - Configuration object for the Unified Share Modal */
29-
config?: USMConfig | Configuration;
28+
config?: Configuration;
3029
/** itemId - Box file or folder ID */
3130
itemId: string;
3231
/** itemType - "file" or "folder" */
3332
itemType: ItemType;
3433
}
3534

36-
function ContentSharingV2({ api, children, config: usmConfig = {}, itemId, itemType }: ContentSharingV2Props) {
35+
function ContentSharingV2({ api, children, config: usmConfig, itemId, itemType }: ContentSharingV2Props) {
3736
const [avatarUrlMap, setAvatarUrlMap] = React.useState<AvatarURLMap | null>(null);
3837
const [item, setItem] = React.useState<Item | null>(null);
3938
const [hasError, setHasError] = React.useState<boolean>(false);

0 commit comments

Comments
 (0)