Skip to content

Commit

Permalink
VUU-20: Remove newLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
pling-scottlogic committed Sep 19, 2023
1 parent 51abff6 commit c9bb4ee
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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();

Expand Down Expand Up @@ -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 (
<LayoutManagementContext.Provider value={{ layoutMetadata, saveLayout }} >
{props.children}
Expand Down

0 comments on commit c9bb4ee

Please sign in to comment.