Skip to content

Commit

Permalink
feat(metadata-sidebar): Restore old export in MetadataInstanceEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
jankowiakdawid committed Oct 10, 2024
1 parent 2bb0fc1 commit c6aba6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/elements/content-sidebar/MetadataInstanceEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
MetadataInstanceForm,
withApiWrapper,
type FormValues,
type JSONPatchOperations,
type MetadataTemplateInstance,
Expand All @@ -24,7 +23,7 @@ export interface MetadataInstanceEditorProps {
template: MetadataTemplateInstance;
}

export const MetadataInstanceEditor: React.FC<MetadataInstanceEditorProps> = ({
const MetadataInstanceEditor: React.FC<MetadataInstanceEditorProps> = ({
areAiSuggestionsAvailable,
isBoxAiSuggestionsEnabled,
isDeleteButtonDisabled,
Expand Down Expand Up @@ -53,4 +52,4 @@ export const MetadataInstanceEditor: React.FC<MetadataInstanceEditorProps> = ({
);
};

export default withApiWrapper(MetadataInstanceEditor);
export default MetadataInstanceEditor;
2 changes: 1 addition & 1 deletion src/elements/content-sidebar/MetadataSidebarRedesign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { type WithLoggerProps } from '../../common/types/logging';

import messages from '../common/messages';
import './MetadataSidebarRedesign.scss';
import { MetadataInstanceEditor } from './MetadataInstanceEditor';
import MetadataInstanceEditor from './MetadataInstanceEditor';
import { convertTemplateToTemplateInstance } from './utils/convertTemplateToTemplateInstance';
import { isExtensionSupportedForMetadataSuggestions } from './utils/isExtensionSupportedForMetadataSuggestions';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { type MetadataTemplateInstance } from '@box/metadata-editor';
import userEvent from '@testing-library/user-event';
import { screen, render } from '../../../test-utils/testing-library';
import { MetadataInstanceEditor, MetadataInstanceEditorProps } from '../MetadataInstanceEditor';
import MetadataInstanceEditor, { MetadataInstanceEditorProps } from '../MetadataInstanceEditor';

const mockOnCancel = jest.fn();
const mockOnDiscardUnsavedChanges = jest.fn();
Expand Down

0 comments on commit c6aba6d

Please sign in to comment.