Skip to content

Commit

Permalink
frontend: Fix imports so they have full path, not just common 3/x
Browse files Browse the repository at this point in the history
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
  • Loading branch information
illume committed May 8, 2024
1 parent 11aad81 commit 7577e8b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
6 changes: 5 additions & 1 deletion frontend/src/components/App/Notifications/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import { useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux';
import { useHistory } from 'react-router-dom';
import { useTypedSelector } from '../../../redux/reducers/reducers';
import { DateLabel, Link, SectionBox, SectionFilterHeader, SimpleTable } from '../../common';
import Empty from '../../common/EmptyContent';
import { DateLabel } from '../../common/Label';
import Link from '../../common/Link';
import SectionBox from '../../common/SectionBox';
import SectionFilterHeader from '../../common/SectionFilterHeader';
import SimpleTable from '../../common/SimpleTable';
import { Notification, setNotifications, updateNotifications } from './notificationsSlice';

export default function NotificationList() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/App/Notifications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import { useClustersConf } from '../../../lib/k8s';
import Event from '../../../lib/k8s/event';
import { createRouteURL } from '../../../lib/router';
import { useTypedSelector } from '../../../redux/reducers/reducers';
import { DateLabel } from '../../common';
import Empty from '../../common/EmptyContent';
import { DateLabel } from '../../common/Label';
import {
defaultMaxNotificationsStored,
loadNotifications,
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/common/ObjectEventList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { KubeObject } from '../../lib/k8s/cluster';
import Event, { KubeEvent } from '../../lib/k8s/event';
import { localeDate, timeAgo } from '../../lib/util';
import { HeadlampEventType, useEventCallback } from '../../redux/headlampEventSlice';
import { HoverInfoLabel, SectionBox, SimpleTable } from '../common';
import { HoverInfoLabel } from '../common/Label';
import { SectionBox } from '../common/SectionBox';
import SimpleTable from '../common/SimpleTable';
import ShowHideLabel from './ShowHideLabel';

export interface ObjectEventListProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, Story } from '@storybook/react';
import { EditorDialog, EditorDialogProps } from '..';
import EditorDialog, { EditorDialogProps } from './EditorDialog';

export default {
title: 'Resource/EditorDialog',
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// export { default as EmptyContent } from './EmptyContent';
// export * from './InnerTable';
// export { default as InnerTable } from './InnerTable';
export * from './Label';
// export * from './Label';
// export * from './LabelListItem';
// export { default as LabelListItem } from './LabelListItem';
export * from './Link';
Expand All @@ -25,7 +25,7 @@ export { default as Link } from './Link';
// export { default as EditorDialog } from './Resource/EditorDialog';
export * from './SectionBox';
// export * from './SectionFilterHeader';
export { default as SectionFilterHeader } from './SectionFilterHeader';
// export { default as SectionFilterHeader } from './SectionFilterHeader';
export * from './SectionHeader';
export { default as SectionHeader } from './SectionHeader';
// export * from './ShowHideLabel';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ingress/ClassList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTranslation } from 'react-i18next';
import IngressClass from '../../lib/k8s/ingressClass';
import { HoverInfoLabel } from '../common';
import { HoverInfoLabel } from '../common/Label';
import ResourceListView from '../common/Resource/ResourceListView';

export default function IngressClassList() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/node/List.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTranslation } from 'react-i18next';
import Node from '../../lib/k8s/node';
import { HoverInfoLabel } from '../common';
import { HoverInfoLabel } from '../common/Label';
import ResourceListView from '../common/Resource/ResourceListView';
import { UsageBarChart } from './Charts';
import { NodeReadyLabel } from './Details';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story } from '@storybook/react';
import React from 'react';
import { KubeObjectInterface } from '../../lib/k8s/cluster';
import { TestContext } from '../../test';
import { VolumeSection, VolumeSectionProps } from '../common';
import { VolumeSection, VolumeSectionProps } from '../common/Resource';

const dummyResource: KubeObjectInterface = {
kind: 'Pod',
Expand Down

0 comments on commit 7577e8b

Please sign in to comment.