Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const basic = {
},
};

export const Modernization = {
export const withModernization = {
args: {
enableModernizedComponents: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DEFAULT_HOSTNAME_API } from '../../../../constants';

export const basic = {};

export const Modernization = {
export const withModernization = {
args: {
enableModernizedComponents: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const basic = {
},
};

export const Modernization = {
export const withModernization = {
args: {
enableModernizedComponents: true,
},
Expand Down
3 changes: 2 additions & 1 deletion src/elements/content-sharing/ContentSharingV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { CollaborationRole, Collaborator, Item, SharedLink, User } from '@b
import API from '../../api';
import Internationalize from '../common/Internationalize';
import Providers from '../common/Providers';
import { withBlueprintModernization } from '../common/withBlueprintModernization';
import { fetchAvatars, fetchCollaborators, fetchCurrentUser, fetchItem } from './apis';
import { useSharingService } from './hooks/useSharingService';
import { convertCollabsResponse, convertItemResponse } from './utils';
Expand Down Expand Up @@ -177,4 +178,4 @@ function ContentSharingV2({
);
}

export default ContentSharingV2;
export default withBlueprintModernization(ContentSharingV2);
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as React from 'react';
import { expect, screen, userEvent, waitFor, within } from 'storybook/test';

import { Button } from '@box/blueprint-web';

import { TYPE_FILE } from '../../../../constants';
import {
mockAPIWithCollaborators,
Expand Down Expand Up @@ -69,7 +71,7 @@ export default {
title: 'Elements/ContentSharingV2/tests/visual-regression-tests',
component: ContentSharingV2,
args: {
children: <button>Open Unified Share Modal</button>,
children: <Button>Open Unified Share Modal</Button>,
itemType: TYPE_FILE,
itemID: global.FILE_ID,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
};

export const Modernization = {
export const withModernization = {
args: {
enableModernizedComponents: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const basic = {
},
};

export const Modernization = {
export const withModernization = {
args: {
enableModernizedComponents: true,
},
Expand Down