From c9bb4ee670827dceb06d4d740d8313992607a479 Mon Sep 17 00:00:00 2001 From: Peter Ling Date: Tue, 19 Sep 2023 10:48:30 +0100 Subject: [PATCH] VUU-20: Remove newLayout --- .../vuu-shell/src/layout-management/useLayoutManager.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx b/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx index aea46a907..59bda95df 100644 --- a/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx +++ b/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx @@ -1,7 +1,7 @@ import React, { useState, useCallback, useContext, useEffect } from "react"; import { getLocalEntity } from "@finos/vuu-filters"; import { LayoutJSON, LocalLayoutPersistenceManager } from "@finos/vuu-layout"; -import { LayoutMetadata, Layout } from "./layoutTypes"; +import { LayoutMetadata } from "./layoutTypes"; const persistenceManager = new LocalLayoutPersistenceManager(); @@ -33,15 +33,12 @@ export const LayoutManagementProvider = (props: { id: generatedId }; - const newLayout: Layout = { - json: json, - id: generatedId - }; - setLayoutMetadata(prev => [...prev, newMetadata]); } }, []) + // TODO: add loadLayout function + return ( {props.children}