Skip to content

Commit

Permalink
chore(workorder): remove cutoff tab fix #988 (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas authored Sep 6, 2024
1 parent 890cd4a commit f419dc1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 174 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ export * from './unsignedAction';
export * from './unsignedTask';
export * from './details';
export * from './material';
export * from './cutoff';
export * from './mccr';
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Tabs } from '@equinor/eds-core-react';
import { useQuery } from '@tanstack/react-query';
import { useState } from 'react';

import {
CutoffTab,
LinkCell,
MaterialTab,
MccrTab,
Expand All @@ -14,7 +12,6 @@ import {
useContextId,
useHttpClient,
} from '@cc-components/shared';

import {
BannerItem,
CustomStyledPanels,
Expand All @@ -28,19 +25,14 @@ import {
StyledTabsList,
TabTitle,
} from '@cc-components/sharedcomponents';

import {
WorkOrder,
getMatStatusColorByStatus,
getMccrStatusColorByStatus,
} from '@cc-components/workordershared';

import { ModelViewerTab, TagOverlay } from '@cc-components/modelviewer';

import { useMaterial, useMccr } from '../utils-sidesheet';
import { useCutoff } from '../utils-sidesheet/useCutoff';
import { DetailsTab } from './DetailsTab';

import { useGetEchoConfig } from '../utils-sidesheet/useGetEchoConfig';

const viewerOptions = {
Expand All @@ -64,8 +56,6 @@ export const WorkorderSidesheet = (props: {
error: materialError,
} = useMaterial(props.id);

const { data: cutoffList, error: cutoffError, isLoading } = useCutoff(props.id);

const {
data: modelConfig,
isFetching: isFetchingModelConfig,
Expand Down Expand Up @@ -176,9 +166,6 @@ export const WorkorderSidesheet = (props: {
<Tabs.Tab>
Material <TabTitle data={material} isLoading={isFetchingMaterial} />
</Tabs.Tab>
<Tabs.Tab>
Cutoff <TabTitle data={cutoffList} isLoading={isLoading} />
</Tabs.Tab>
<Tabs.Tab>
3D <TabTitle data={modelConfig?.tags} isLoading={isFetchingModelConfig} />
</Tabs.Tab>
Expand All @@ -203,13 +190,6 @@ export const WorkorderSidesheet = (props: {
error={materialError as Error | null}
/>
</StyledPanel>
<StyledPanel>
<CutoffTab
cutoff={cutoffList}
isFetching={isLoading}
error={cutoffError as Error | null}
/>
</StyledPanel>
<StyledPanel style={{ height: '100%' }}>
<ModelViewerTab
tagOverlay={tagsOverlay}
Expand Down

0 comments on commit f419dc1

Please sign in to comment.