Skip to content

Commit 58df2d9

Browse files
remove warnings
1 parent 6eb8244 commit 58df2d9

File tree

7 files changed

+84
-84
lines changed

7 files changed

+84
-84
lines changed

src/ui/layouts/pipelines/PipelineDetail/index.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react';
22

3-
import { Box, Paragraph } from '../../../components';
4-
import { formatDateToDisplayOnTable } from '../../../../utils';
3+
// import { Box, Paragraph } from '../../../components';
4+
// import { formatDateToDisplayOnTable } from '../../../../utils';
55
import { routePaths } from '../../../../routes/routePaths';
66
import { translate } from './translate';
77
import { Configuration } from './Configuration';
@@ -98,15 +98,15 @@ export const PipelineDetail: React.FC = () => {
9898
const tabPages = getTabPages(pipeline.id, selectedProject);
9999
const breadcrumbs = getBreadcrumbs(pipeline.id, selectedProject);
100100

101-
const boxStyle = {
102-
backgroundColor: '#E9EAEC',
103-
padding: '10px 0',
104-
borderRadius: '8px',
105-
marginTop: '20px',
106-
display: 'flex',
107-
justifyContent: 'space-around',
108-
};
109-
const headStyle = { color: '#828282' };
101+
// const boxStyle = {
102+
// backgroundColor: '#E9EAEC',
103+
// padding: '10px 0',
104+
// borderRadius: '8px',
105+
// marginTop: '20px',
106+
// display: 'flex',
107+
// justifyContent: 'space-around',
108+
// };
109+
// const headStyle = { color: '#828282' };
110110

111111
return (
112112
<BasePage

src/ui/layouts/pipelines/RunDetail/index.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import { useService } from './useService';
88
import { Configuration } from '../RunDetail/Configuration';
99
import { DAG } from '../../../components/dag';
1010

11-
import { Box, Paragraph } from '../../../components';
11+
// import { Box, Paragraph } from '../../../components';
1212

13-
import { RunStatus } from './components';
13+
// import { RunStatus } from './components';
1414

15-
import { formatDateToDisplayOnTable } from '../../../../utils';
16-
import { useHistory, useSelector } from '../../../hooks';
15+
// import { formatDateToDisplayOnTable } from '../../../../utils';
16+
import { useSelector } from '../../../hooks';
1717
import { projectSelectors } from '../../../../redux/selectors';
1818
import { Runs } from '../PipelineDetail/Runs';
1919

@@ -86,7 +86,7 @@ export interface RunDetailRouteParams {
8686
}
8787

8888
export const RunDetail: React.FC = () => {
89-
const { runId, pipelineId, run, fetching } = useService();
89+
const { runId, pipelineId, fetching } = useService();
9090
const selectedProject = useSelector(projectSelectors.selectedProject);
9191
const tabPages = getTabPages({
9292
selectedProject,
@@ -100,16 +100,16 @@ export const RunDetail: React.FC = () => {
100100
selectedProject,
101101
});
102102

103-
const boxStyle = {
104-
backgroundColor: '#E9EAEC',
105-
padding: '10px 0',
106-
borderRadius: '8px',
107-
marginTop: '20px',
108-
display: 'flex',
109-
justifyContent: 'space-around',
110-
};
111-
const headStyle = { color: '#828282' };
112-
const history = useHistory();
103+
// const boxStyle = {
104+
// backgroundColor: '#E9EAEC',
105+
// padding: '10px 0',
106+
// borderRadius: '8px',
107+
// marginTop: '20px',
108+
// display: 'flex',
109+
// justifyContent: 'space-around',
110+
// };
111+
// const headStyle = { color: '#828282' };
112+
// const history = useHistory();
113113
return (
114114
<BasePage
115115
tabPages={tabPages}

src/ui/layouts/runs/RunDetail/index.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { Configuration } from './Configuration';
77
import { DAG } from '../../../components/dag';
88
import { useService } from './useService';
99

10-
import { Box, Paragraph } from '../../../components';
10+
// import { Box, Paragraph } from '../../../components';
1111

12-
import { RunStatus } from './components';
12+
// import { RunStatus } from './components';
1313

14-
import { formatDateToDisplayOnTable } from '../../../../utils';
15-
import { useHistory, useSelector } from '../../../hooks';
14+
// import { formatDateToDisplayOnTable } from '../../../../utils';
15+
import { useSelector } from '../../../hooks';
1616
import { projectSelectors } from '../../../../redux/selectors';
1717
import { Runs } from '../../pipelines/PipelineDetail/Runs';
1818

@@ -69,7 +69,7 @@ export interface RunDetailRouteParams {
6969
}
7070

7171
export const RunDetail: React.FC = () => {
72-
const { runId, run, fetching } = useService();
72+
const { runId, fetching } = useService();
7373
const selectedProject = useSelector(projectSelectors.selectedProject);
7474
const tabPages = getTabPages({
7575
selectedProject,
@@ -81,16 +81,16 @@ export const RunDetail: React.FC = () => {
8181
selectedProject,
8282
});
8383

84-
const boxStyle = {
85-
backgroundColor: '#E9EAEC',
86-
padding: '10px 0',
87-
borderRadius: '8px',
88-
marginTop: '20px',
89-
display: 'flex',
90-
justifyContent: 'space-around',
91-
};
92-
const headStyle = { color: '#828282' };
93-
const history = useHistory();
84+
// const boxStyle = {
85+
// backgroundColor: '#E9EAEC',
86+
// padding: '10px 0',
87+
// borderRadius: '8px',
88+
// marginTop: '20px',
89+
// display: 'flex',
90+
// justifyContent: 'space-around',
91+
// };
92+
// const headStyle = { color: '#828282' };
93+
// const history = useHistory();
9494
return (
9595
<BasePage
9696
tabPages={tabPages}

src/ui/layouts/stackComponents/RunDetail/index.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import React from 'react';
33
import { routePaths } from '../../../../routes/routePaths';
44
import {
55
camelCaseToParagraph,
6-
formatDateToDisplayOnTable,
6+
// formatDateToDisplayOnTable,
77
} from '../../../../utils';
8-
import { useHistory, useLocationPath, useSelector } from '../../../hooks';
8+
import { useLocationPath, useSelector } from '../../../hooks';
99

1010
import { BasePage } from '../BasePage';
1111
import { Configuration } from './Configuration';
1212
import { DAG } from '../../../components/dag';
1313
import { useService } from './useService';
1414

15-
import { Box, Paragraph } from '../../../components';
15+
// import { Box, Paragraph } from '../../../components';
1616

17-
import { RunStatus } from './components';
17+
// import { RunStatus } from './components';
1818
import { projectSelectors } from '../../../../redux/selectors';
1919
import { Runs } from '../StackDetail/Runs';
2020

@@ -26,8 +26,8 @@ export interface RunDetailRouteParams {
2626

2727
export const RunDetail: React.FC = () => {
2828
const locationPath = useLocationPath();
29-
const history = useHistory();
30-
const { stackComponentId, runId, run, fetching } = useService();
29+
// const history = useHistory();
30+
const { stackComponentId, runId, fetching } = useService();
3131
const selectedProject = useSelector(projectSelectors.selectedProject);
3232
const tabPages = [
3333
{
@@ -82,15 +82,15 @@ export const RunDetail: React.FC = () => {
8282
),
8383
},
8484
];
85-
const boxStyle = {
86-
backgroundColor: '#E9EAEC',
87-
padding: '10px 0',
88-
borderRadius: '8px',
89-
marginTop: '20px',
90-
display: 'flex',
91-
justifyContent: 'space-around',
92-
};
93-
const headStyle = { color: '#828282' };
85+
// const boxStyle = {
86+
// backgroundColor: '#E9EAEC',
87+
// padding: '10px 0',
88+
// borderRadius: '8px',
89+
// marginTop: '20px',
90+
// display: 'flex',
91+
// justifyContent: 'space-around',
92+
// };
93+
// const headStyle = { color: '#828282' };
9494

9595
return (
9696
<BasePage

src/ui/layouts/stackComponents/StackDetail/Runs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
22
import { translate } from '../translate';
33
import { RunsTable } from '../../RunsTable';
44
import { useService } from './useService';
5-
import { Pagination } from '../../../common/Pagination';
5+
// import { Pagination } from '../../../common/Pagination';
66

77
export const Runs: React.FC<{
88
stackComponentId: TId;

src/ui/layouts/stacks/RunDetail/index.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { Configuration } from './Configuration';
66
import { useService } from './useService';
77
import { DAG } from '../../../components/dag';
88

9-
import { Box, Paragraph } from '../../../components';
10-
import { RunStatus } from './components';
11-
import { formatDateToDisplayOnTable } from '../../../../utils';
12-
import { useHistory } from 'react-router-dom';
9+
// import { Box, Paragraph } from '../../../components';
10+
// import { RunStatus } from './components';
11+
// import { formatDateToDisplayOnTable } from '../../../../utils';
12+
// import { useHistory } from 'react-router-dom';
1313
import { useSelector } from '../../../hooks';
1414
import { projectSelectors } from '../../../../redux/selectors';
1515
import { Runs } from '../StackDetail/Runs';
@@ -75,8 +75,8 @@ export interface RunDetailRouteParams {
7575
}
7676

7777
export const RunDetail: React.FC = () => {
78-
const { runId, stackId, run, fetching } = useService();
79-
const history = useHistory();
78+
const { runId, stackId, fetching } = useService();
79+
// const history = useHistory();
8080
const selectedProject = useSelector(projectSelectors.selectedProject);
8181

8282
const tabPages = getTabPages({
@@ -90,15 +90,15 @@ export const RunDetail: React.FC = () => {
9090
stackId,
9191
selectedProject,
9292
});
93-
const boxStyle = {
94-
backgroundColor: '#E9EAEC',
95-
padding: '10px 0',
96-
borderRadius: '8px',
97-
marginTop: '20px',
98-
display: 'flex',
99-
justifyContent: 'space-around',
100-
};
101-
const headStyle = { color: '#828282' };
93+
// const boxStyle = {
94+
// backgroundColor: '#E9EAEC',
95+
// padding: '10px 0',
96+
// borderRadius: '8px',
97+
// marginTop: '20px',
98+
// display: 'flex',
99+
// justifyContent: 'space-around',
100+
// };
101+
// const headStyle = { color: '#828282' };
102102
return (
103103
<BasePage
104104
tabPages={tabPages}

src/ui/layouts/stacks/StackDetail/index.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useState } from 'react';
22

3-
import { Box, Paragraph, icons } from '../../../components';
4-
import { iconColors, iconSizes } from '../../../../constants';
5-
import { formatDateToDisplayOnTable } from '../../../../utils';
3+
// import { Box, Paragraph, icons } from '../../../components';
4+
// import { iconColors, iconSizes } from '../../../../constants';
5+
// import { formatDateToDisplayOnTable } from '../../../../utils';
66
import { routePaths } from '../../../../routes/routePaths';
77
import { translate } from './translate';
88
import { Configuration } from './Configuration';
@@ -92,15 +92,15 @@ export const StackDetail: React.FC = () => {
9292
const tabPages = getTabPages(stack.id, selectedProject);
9393
const breadcrumbs = getBreadcrumbs(stack.id, selectedProject);
9494

95-
const boxStyle = {
96-
backgroundColor: '#E9EAEC',
97-
padding: '10px 0',
98-
borderRadius: '8px',
99-
marginTop: '20px',
100-
display: 'flex',
101-
justifyContent: 'space-around',
102-
};
103-
const headStyle = { color: '#828282' };
95+
// const boxStyle = {
96+
// backgroundColor: '#E9EAEC',
97+
// padding: '10px 0',
98+
// borderRadius: '8px',
99+
// marginTop: '20px',
100+
// display: 'flex',
101+
// justifyContent: 'space-around',
102+
// };
103+
// const headStyle = { color: '#828282' };
104104

105105
return (
106106
<BasePage

0 commit comments

Comments
 (0)