Skip to content

Commit f20a1a8

Browse files
committed
refactor: remove getAppDetailsURL function and update imports in AppDetails component
1 parent 03f918e commit f20a1a8

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/components/app/details/appDetails/AppDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
ButtonComponentType,
2828
DeploymentAppTypes,
2929
GenericEmptyState,
30+
getAppDetailsURL,
3031
getAppsInfoForEnv,
3132
getIsRequestAborted,
3233
MODAL_TYPE,
@@ -54,7 +55,6 @@ import {
5455
DEPLOYMENT_STATUS,
5556
DEPLOYMENT_STATUS_QUERY_PARAM,
5657
DOCUMENTATION,
57-
getAppDetailsURL,
5858
getAppTriggerURL,
5959
HELM_DEPLOYMENT_STATUS_TEXT,
6060
RESOURCES_NOT_FOUND,

src/config/routes.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,6 @@ export const getAppComposeURL = (appId: string, appStage: APP_COMPOSE_STAGE | nu
173173
return `${_url}/${URLS.APP_GIT_CONFIG}`
174174
}
175175

176-
export function getAppDetailsURL(appId: number | string, envId?: number | string): string {
177-
let url = `${URLS.APP}/${appId}/${URLS.APP_DETAILS}`
178-
if (envId) {
179-
url = `${url}/${envId}`
180-
}
181-
return url
182-
}
183-
184176
export function getAppTriggerURL(appId: number | string): string {
185177
return `${URLS.APP}/${appId}/${URLS.APP_TRIGGER}`
186178
}

0 commit comments

Comments
 (0)