ISSUE-005 - Implemented a PreviewWindow component. Improvements to the way that the workspaces are generated. Using mock components.

This commit is contained in:
Kyle Geib committed 2022-01-07 18:03:27 -05:00
1 parent 5dcc3f3940
commit ab4c8eefa6
9 files changed
+109 -9

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
export const workspaceList = [
{
name: "Workspace 1",
id: "workspace1",
},
{
name: "Workspace 2",
id: "workspace2",
},
{
name: "Workspace 3",
id: "workspace3",
},
{
name: "Workspace 4 has a longer name than the rest",
id: "workspace4",
},
];
export const workspaceObject = ((list: typeof workspaceList) => {
const obj: {[key: string]: string} = {};
list.forEach(item => {
obj[item.id] = item.name;
});
console.log("workspaceObject", obj);
return obj;
})(workspaceList);
console.log(workspaceObject);