Skip to content

Commit

Permalink
feat(content-sidebar): Remove unneeded constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jankowiakdawid committed Jul 18, 2024
1 parent f65408b commit 89839c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ export const ORIGIN_ACTIVITY_SIDEBAR: 'activity_sidebar' = 'activity_sidebar';
export const ORIGIN_DETAILS_SIDEBAR: 'details_sidebar' = 'details_sidebar';
export const ORIGIN_DOCGEN_SIDEBAR: 'docgen_sidebar' = 'docgen_sidebar';
export const ORIGIN_METADATA_SIDEBAR: 'metadata_sidebar' = 'metadata_sidebar';
export const ORIGIN_METADATA_SIDEBAR_REDESIGN: 'metadata_sidebar' = 'metadata_sidebar';
export const ORIGIN_SKILLS_SIDEBAR: 'skills_sidebar' = 'skills_sidebar';
export const ORIGIN_VERSIONS_SIDEBAR: 'versions_sidebar' = 'versions_sidebar';
export const ORIGIN_PREVIEW: 'preview' = 'preview';
Expand Down
6 changes: 3 additions & 3 deletions src/elements/content-sidebar/MetadataSidebarRedesign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { FormattedMessage } from 'react-intl';
import { withAPIContext } from '../common/api-context';
import { withErrorBoundary } from '../common/error-boundary';
import { withLogger } from '../common/logger';
import { ORIGIN_METADATA_SIDEBAR_REDESIGN } from '../../constants';
import { ORIGIN_METADATA_SIDEBAR } from '../../constants';
import messages from '../common/messages';

import './MetadataSidebarRedesign.scss';
Expand All @@ -27,7 +27,7 @@ function MetadataSidebarRedesign() {

export { MetadataSidebarRedesign as MetadataSidebarRedesignComponent };
export default flow([
withLogger(ORIGIN_METADATA_SIDEBAR_REDESIGN),
withErrorBoundary(ORIGIN_METADATA_SIDEBAR_REDESIGN),
withLogger(ORIGIN_METADATA_SIDEBAR),
withErrorBoundary(ORIGIN_METADATA_SIDEBAR),
withAPIContext,
])(MetadataSidebarRedesign);

0 comments on commit 89839c2

Please sign in to comment.