File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
ethernet-view/src/pages/TestingPage Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 11import { useState } from "react" ;
2- // import { SplitLayout } from "layouts/SplitLayout/SplitLayout";
3- // import { Orientation } from "hooks/useSplit/Orientation";
2+ import { SplitLayout } from "layouts/SplitLayout/SplitLayout" ;
3+ import { Orientation } from "hooks/useSplit/Orientation" ;
44import { ReceiveColumn } from "pages/TestingPage/ReceiveColumn/ReceiveColumn" ;
55import { OrderColumn } from "pages/TestingPage/OrderColumn/OrderColumn" ;
66import { MessagesColumn } from "pages/TestingPage/MessagesColumn/MessagesColumn" ;
@@ -66,13 +66,14 @@ export const TestingPage = () => {
6666 </ button >
6767 ) ) }
6868 </ div >
69- < div style = { { display : "flex" , height : "100%" , gap : "1rem" } } >
70- { visibleComponents . map ( ( { key, component } ) => (
71- < div key = { key } style = { { flex : `1 1 ${ 100 / visibleComponents . length } %` , overflow : "auto" } } >
72- { component }
73- </ div >
74- ) ) }
75- </ div >
69+ < SplitLayout
70+ key = { visibleComponents . length }
71+ components = { visibleComponents . map ( ( { component, icon } ) => ( {
72+ component,
73+ collapsedIcon : icon ,
74+ } ) ) }
75+ orientation = { Orientation . HORIZONTAL }
76+ />
7677 </ div >
7778 </ div >
7879 ) ;
You can’t perform that action at this time.
0 commit comments