Skip to content

Commit c12b240

Browse files
committed
refactor: remove unsused props from componentLibraryProvider
1 parent 7f3e8ec commit c12b240

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/components/shared/Dialogs/ComponentDuplicateDialog.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ const createMockComponentLibraryContext = (
4848
searchComponentLibrary: vi.fn(),
4949
addToComponentLibrary: vi.fn(),
5050
removeFromComponentLibrary: vi.fn(),
51-
refetchLibrary: vi.fn(),
52-
refetchUserComponents: vi.fn(),
5351
setComponentFavorite: vi.fn(),
5452
checkIfUserComponent: vi.fn().mockReturnValue(false),
5553
checkLibraryContainsComponent: vi.fn().mockReturnValue(false),

src/providers/ComponentLibraryProvider/ComponentLibraryProvider.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ type ComponentLibraryContextType = {
8484
component: HydratedComponentReference,
8585
) => Promise<HydratedComponentReference | undefined>;
8686
removeFromComponentLibrary: (component: ComponentReference) => void;
87-
refetchLibrary: () => void;
88-
refetchUserComponents: () => void;
89-
9087
setComponentFavorite: (
9188
component: ComponentReference,
9289
favorited: boolean,
@@ -593,8 +590,6 @@ export const ComponentLibraryProvider = ({
593590
getComponentLibrary,
594591
addToComponentLibrary,
595592
removeFromComponentLibrary,
596-
refetchLibrary,
597-
refetchUserComponents,
598593
setComponentFavorite,
599594
checkIfUserComponent,
600595
checkLibraryContainsComponent,
@@ -612,8 +607,6 @@ export const ComponentLibraryProvider = ({
612607
getComponentLibrary,
613608
addToComponentLibrary,
614609
removeFromComponentLibrary,
615-
refetchLibrary,
616-
refetchUserComponents,
617610
setComponentFavorite,
618611
checkIfUserComponent,
619612
checkLibraryContainsComponent,

0 commit comments

Comments
 (0)