Skip to content

Commit 874dea2

Browse files
committed
chore: revert switch content
1 parent 30d1f10 commit 874dea2

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.20.3-pre-10",
3+
"version": "1.20.3-pre-11",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export const ContextSwitcher = ({
4545
optionListError,
4646
reloadOptionList,
4747
classNamePrefix,
48-
resource,
4948
}: ContextSwitcherTypes) => {
5049
const selectRef = useRef<SelectInstance<SelectPickerOptionType>>(null)
5150
const shouldShowToastRef = useRef<boolean>(true)
@@ -61,7 +60,7 @@ export const ContextSwitcher = ({
6160
if (shouldShowToastRef.current) {
6261
ToastManager.showToast({
6362
variant: ToastVariantType.shortcut,
64-
text: `to switch ${resource}`,
63+
text: 'to switch Applications',
6564
shortcuts: ['S'],
6665
})
6766
}

src/Shared/Components/ContextSwitcher/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export interface ContextSwitcherTypes
3636
> {
3737
options: GroupBase<SelectPickerOptionType<string | number>>[]
3838
isAppDataAvailable?: boolean
39-
resource: 'Cluster' | 'Release' | 'Tenant' | 'Application' | 'Job' | 'Application Group' | 'Chart Store'
4039
}
4140

4241
export interface RecentlyVisitedOptions extends SelectPickerOptionType<number> {

0 commit comments

Comments
 (0)