Skip to content

Commit 7520c0d

Browse files
committed
chore: move types
1 parent 4a16d20 commit 7520c0d

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

src/containers/AppWithClusters/AppWithClusters.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ import React from 'react';
33
import type {Store} from '@reduxjs/toolkit';
44
import type {History} from 'history';
55

6-
import type {
7-
GetLogsLink,
8-
GetMonitoringClusterLink,
9-
GetMonitoringLink,
10-
} from '../../utils/monitoring';
6+
import type {GetLogsLink} from '../../utils/logs';
7+
import type {GetMonitoringClusterLink, GetMonitoringLink} from '../../utils/monitoring';
118
import {
129
getMonitoringClusterLink as getMonitoringClusterLinkDefault,
1310
getMonitoringLink as getMonitoringLinkDefault,

src/utils/logs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export interface GetLogsLinkProps {
2+
dbName: string;
3+
logging: string;
4+
}
5+
6+
export type GetLogsLink = (props: GetLogsLinkProps) => string;

src/utils/monitoring.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,3 @@ export function parseMonitoringData(monitoring: string): ParsedMonitoringData |
9999

100100
return undefined;
101101
}
102-
103-
interface GetLogsLinkProps {
104-
dbName: string;
105-
logging: string;
106-
}
107-
108-
export type GetLogsLink = (props: GetLogsLinkProps) => string;

0 commit comments

Comments
 (0)