11import React , { useState } from 'react' ;
22
33import { routePaths } from '../../../../routes/routePaths' ;
4- import { Box , Paragraph , icons } from '../../../components' ;
5- import { iconColors , iconSizes } from '../../../../constants' ;
6- import {
7- camelCaseToParagraph ,
8- formatDateToDisplayOnTable ,
9- } from '../../../../utils' ;
4+ import { Box } from '../../../components' ;
5+ // import { iconColors, iconSizes } from '../../../../constants';
6+ import { camelCaseToParagraph } from '../../../../utils' ;
7+ // import styles from './index.module.scss';
8+ // import cn from 'classnames';
109import { translate } from './translate' ;
1110import { Configuration } from './Configuration' ;
1211import { Runs } from './Runs' ;
@@ -17,6 +16,7 @@ import FilterComponent, {
1716 getInitialFilterStateForRuns ,
1817} from '../../../components/Filters' ;
1918import { projectSelectors } from '../../../../redux/selectors' ;
19+ import { List } from '../Stacks/List' ;
2020
2121const FilterWrapperForRun = ( ) => {
2222 const locationPath = useLocationPath ( ) ;
@@ -119,16 +119,22 @@ export const StackDetail: React.FC = () => {
119119 selectedProject ,
120120 ) ;
121121
122- const boxStyle = {
123- backgroundColor : '#E9EAEC' ,
124- padding : '10px 0' ,
125- borderRadius : '8px' ,
126- marginTop : '20px' ,
127- display : 'flex' ,
128- justifyContent : 'space-around' ,
129- } ;
130- const headStyle = { color : '#828282' } ;
131- const paraStyle = { color : '#515151' , marginTop : '10px' } ;
122+ // const boxStyle = {
123+ // backgroundColor: '#E9EAEC',
124+ // padding: '10px 0',
125+ // borderRadius: '8px',
126+ // marginTop: '20px',
127+ // display: 'flex',
128+ // justifyContent: 'space-around',
129+ // };
130+ // const headStyle = { color: '#828282' };
131+ // const paraStyle = { color: '#515151', marginTop: '10px' };
132+ // const data = [
133+ // { name: 'Anom', age: 19, gender: 'Male' },
134+ // { name: 'Megha', age: 19, gender: 'Female' },
135+ // { name: 'Subham', age: 25, gender: 'Male' },
136+ // ];
137+ // const history = useHistory();
132138
133139 return (
134140 < BasePage
@@ -140,7 +146,7 @@ export const StackDetail: React.FC = () => {
140146 ) }
141147 breadcrumbs = { breadcrumbs }
142148 >
143- < Box style = { boxStyle } >
149+ { /* <Box style={boxStyle}>
144150 <Box>
145151 <Paragraph style={headStyle}>ID</Paragraph>
146152 <Paragraph style={paraStyle}>{stackComponent.id}</Paragraph>
@@ -183,6 +189,36 @@ export const StackDetail: React.FC = () => {
183189 {formatDateToDisplayOnTable(stackComponent.created)}
184190 </Paragraph>
185191 </Box>
192+ </Box> */ }
193+ < Box paddingTop = { 'xl' } >
194+ < List
195+ filter = { [ ] }
196+ pagination = { false }
197+ isExpended
198+ id = { stackComponent . id }
199+ > </ List >
200+ { /* <>
201+ <table className={cn(styles.table)}>
202+ <tbody>
203+ <tr className={cn(styles.tableHeader)}>
204+ <th className={cn(styles.tableHeaderText)}>Id</th>
205+ <th className={cn(styles.tableHeaderText)}>Name</th>
206+ <th className={cn(styles.tableHeaderText)}>Flavor</th>
207+ <th className={cn(styles.tableHeaderText)}>Shared</th>
208+ <th className={cn(styles.tableHeaderText)}>Author</th>
209+ <th className={cn(styles.tableHeaderText)}>Created</th>
210+ </tr>
211+ <tr className={cn(styles.tableRow)}>
212+ <td>{stackComponent.id}</td>
213+ <td>{stackComponent.name}</td>
214+ <td>{stackComponent.flavor}</td>
215+ <td>{stackComponent.isShared}</td>
216+ <td>{stackComponent.user.name}</td>
217+ <td> {formatDateToDisplayOnTable(stackComponent.created)}</td>
218+ </tr>
219+ </tbody>
220+ </table>
221+ </> */ }
186222 </ Box >
187223 </ BasePage >
188224 ) ;
0 commit comments