added react-mosaic-component to IdeContainer.js
This commit is contained in:
@@ -13,6 +13,16 @@ export const useIdeState = () => {
|
||||
type: 'stl',
|
||||
data: 'some binary',
|
||||
},
|
||||
layout: {
|
||||
direction: 'row',
|
||||
first: 'Editor',
|
||||
second: {
|
||||
direction: 'column',
|
||||
first: 'Viewer',
|
||||
second: 'Console',
|
||||
splitPercentage: 70,
|
||||
},
|
||||
}
|
||||
}
|
||||
const reducer = (state, { type, payload }) => {
|
||||
switch (type) {
|
||||
@@ -41,6 +51,11 @@ export const useIdeState = () => {
|
||||
...state,
|
||||
ideType: payload.message,
|
||||
}
|
||||
case 'updateLayout':
|
||||
return {
|
||||
...state,
|
||||
layout: payload.message,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user