Skip to content

Commit b42d819

Browse files
committed
feat: update ClusterSelector to use DocLinkProps for link keys
1 parent e45f38c commit b42d819

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Pages/Shared/ConfigMapSecret/ConfigMapSecretContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ export const ConfigMapSecretContainer = ({
12441244
return (
12451245
<>
12461246
<Prompt when={shouldPrompt} message={checkIfPathIsMatching(location.pathname)} />
1247-
<div className="configmap-secret-container flexbox w-100 dc__content-space h-100 dc__position-rel">
1247+
<div className="configmap-secret-container flexbox w-100 dc__content-space h-100">
12481248
<div className="p-8 flexbox flex-grow-1 mw-none">
12491249
<div
12501250
className={`br-4 dc__overflow-hidden h-100 bg__primary flex-grow-1 ${isExpressEditView ? 'border__primary-warning' : 'border__primary'}`}

src/components/ResourceBrowser/ResourceList/ClusterSelector.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
APP_SELECTOR_STYLES,
2323
AppSelectorDropdownIndicator,
2424
DocLink,
25+
DocLinkProps,
2526
Icon,
2627
PopupMenu,
2728
ValueContainerWithLoadingShimmer,
@@ -156,17 +157,17 @@ export default ClusterSelector
156157
export const unauthorizedInfoText = (nodeType?: string) => {
157158
const emptyStateData = {
158159
text: ERROR_SCREEN_SUBTITLE,
159-
link: 'K8S_RESOURCES_PERMISSIONS' as const,
160+
link: 'K8S_RESOURCES_PERMISSIONS' as DocLinkProps['docLinkKey'],
160161
linkText: ERROR_SCREEN_LEARN_MORE,
161162
}
162163

163164
if (nodeType === SIDEBAR_KEYS.overviewGVK.Kind.toLowerCase()) {
164165
emptyStateData.text = clusterOverviewNodeText(true)
165-
emptyStateData.link = 'K8S_RESOURCES_PERMISSIONS'
166+
emptyStateData.link = 'GLOBAL_CONFIG_PERMISSION'
166167
emptyStateData.linkText = LEARN_MORE
167168
} else if (nodeType === SIDEBAR_KEYS.nodeGVK.Kind.toLowerCase()) {
168169
emptyStateData.text = clusterOverviewNodeText(false)
169-
emptyStateData.link = 'K8S_RESOURCES_PERMISSIONS'
170+
emptyStateData.link = 'GLOBAL_CONFIG_PERMISSION'
170171
emptyStateData.linkText = LEARN_MORE
171172
}
172173

0 commit comments

Comments
 (0)