From 110d84343bc79ffe0c15deaa323ef94ba3804504 Mon Sep 17 00:00:00 2001 From: Kjell Haaland Date: Fri, 1 Mar 2024 13:31:07 +0100 Subject: [PATCH] Removed modelviewer from punch --- .../src/lib/ui-sidesheet/PunchSidesheet.tsx | 47 +------------------ 1 file changed, 2 insertions(+), 45 deletions(-) diff --git a/libs/punchsidesheet/src/lib/ui-sidesheet/PunchSidesheet.tsx b/libs/punchsidesheet/src/lib/ui-sidesheet/PunchSidesheet.tsx index d4b744403..c8ecbc40f 100644 --- a/libs/punchsidesheet/src/lib/ui-sidesheet/PunchSidesheet.tsx +++ b/libs/punchsidesheet/src/lib/ui-sidesheet/PunchSidesheet.tsx @@ -1,13 +1,5 @@ import { Punch } from '@cc-components/punchshared'; -import { - LinkCell, - ModelViewerTab, - PackageStatus, - colorMap, - hasProperty, - useContextId, - useHttpClient, -} from '@cc-components/shared'; +import { LinkCell, useContextId, useHttpClient } from '@cc-components/shared'; import { BannerItem, SidesheetHeader, @@ -19,8 +11,7 @@ import { } from '@cc-components/sharedcomponents'; import { Tabs } from '@equinor/eds-core-react'; import { useQuery } from '@tanstack/react-query'; -import { TagOverlay } from 'libs/modelviewer/dist/src'; -import { useMemo, useRef, useState } from 'react'; +import { useRef, useState } from 'react'; import { DetailsTab } from './DetailsTab'; import { StyledTabListWrapper, StyledTabsList } from './sidesheet.styles'; @@ -65,30 +56,6 @@ export const PunchSidesheet = (props: { return
Failed to get Punch with id: {props.id}
; } - const punchIcon = (category: string) => { - return

{category}

; - }; - - const tagsOverlay = useMemo(() => { - return [ - { - tagNo: punch.tagNo, - description: punch.description, - status: punch.category, - icon: punchIcon(punch.category || ''), - }, - ] as TagOverlay[]; - }, [punch]); - - const viewerOptions = { - statusResolver: (status: string) => { - return hasProperty(colorMap, status) - ? colorMap[status as PackageStatus] - : '#009922'; - }, - defaultCroppingDistance: 3, - }; - return ( Details - 3D @@ -158,15 +124,6 @@ export const PunchSidesheet = (props: { - - -