From 4f6e44ed050cbcca674e2b240d6b8e6ed8af1e58 Mon Sep 17 00:00:00 2001 From: Gustav-Eikaas <89254170+Gustav-Eikaas@users.noreply.github.com> Date: Tue, 10 Oct 2023 12:44:08 +0200 Subject: [PATCH] chore: :fire: remove unused code and dependency (#490) --- packages/workspace-fusion/package.json | 1 - .../modules/garden/components/wrapper/GardenWrapper.tsx | 9 +-------- pnpm-lock.yaml | 3 --- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/workspace-fusion/package.json b/packages/workspace-fusion/package.json index d47e6df67..dec33ad8e 100644 --- a/packages/workspace-fusion/package.json +++ b/packages/workspace-fusion/package.json @@ -77,7 +77,6 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-error-boundary": "^3.1.4", - "rxjs": "^7.8.0", "vite-plugin-environment": "^1.1.3" }, "peerDependencies": { diff --git a/packages/workspace-fusion/src/modules/garden/components/wrapper/GardenWrapper.tsx b/packages/workspace-fusion/src/modules/garden/components/wrapper/GardenWrapper.tsx index f2d88178a..1ccb2e7f3 100644 --- a/packages/workspace-fusion/src/modules/garden/components/wrapper/GardenWrapper.tsx +++ b/packages/workspace-fusion/src/modules/garden/components/wrapper/GardenWrapper.tsx @@ -2,8 +2,7 @@ import { Button, Icon } from '@equinor/eds-core-react'; import { arrow_back_ios, arrow_forward_ios } from '@equinor/eds-icons'; import { FilterState, useFilterContext } from '@equinor/workspace-filter'; import { Garden } from '@equinor/workspace-garden'; -import { useEffect, useRef, useState } from 'react'; -import { BehaviorSubject } from 'rxjs'; +import { useState } from 'react'; import styled from 'styled-components'; import { useWorkspace } from '../../../../lib/hooks'; import { GardenConfig } from '../../../../lib/integrations/garden'; @@ -35,12 +34,6 @@ export const GardenWrapper = , TFilte updateDateVariant(dateVariant); }; - const groupingKeys$ = useRef(new BehaviorSubject({ groupingKeys, timeInterval, dateVariant })); - - useEffect(() => { - groupingKeys$.current.next({ groupingKeys, timeInterval, dateVariant }); - }, [groupingKeys, timeInterval, dateVariant]); - const { selection } = useWorkspace(); return ( diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ecd9c12b..e8f6ed4f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -483,9 +483,6 @@ importers: react-is: specifier: '>= 16.8.0' version: 18.2.0 - rxjs: - specifier: ^7.8.0 - version: 7.8.0 vite-plugin-environment: specifier: ^1.1.3 version: 1.1.3(vite@4.3.9)