|
17 | 17 | import React, { MouseEventHandler, useEffect, useState } from 'react'
|
18 | 18 | import { ClearIndicatorProps, components, ValueContainerProps } from 'react-select'
|
19 | 19 |
|
20 |
| -import { Button, ButtonVariantType, ComponentSizeType, Tooltip } from '@devtron-labs/devtron-fe-common-lib' |
| 20 | +import { Button, ButtonVariantType, ComponentSizeType } from '@devtron-labs/devtron-fe-common-lib' |
21 | 21 |
|
22 | 22 | import { ReactComponent as ClearIcon } from '@Icons/ic-error.svg'
|
23 | 23 | import { ReactComponent as SearchIcon } from '@Icons/ic-search.svg'
|
24 | 24 | import { ReactComponent as Warning } from '@Icons/ic-warning.svg'
|
25 | 25 |
|
26 | 26 | import { handleUTCTime } from '../../common'
|
27 | 27 | import { ShortcutKeyBadge } from '../../common/formFields/Widgets/Widgets'
|
28 |
| -import { SidebarChildButtonPropsType } from '../Types' |
29 | 28 |
|
30 | 29 | export const KindSearchValueContainer = (props: ValueContainerProps) => {
|
31 | 30 | const { selectProps, children } = props
|
@@ -96,38 +95,3 @@ export const renderRefreshBar =
|
96 | 95 | (show: boolean, lastSyncTime: string, callback: () => void): (() => JSX.Element) =>
|
97 | 96 | () =>
|
98 | 97 | !show ? null : <WarningStrip lastSyncTime={lastSyncTime} callback={callback} />
|
99 |
| - |
100 |
| -export const SidebarChildButton: React.FC<SidebarChildButtonPropsType> = ({ |
101 |
| - parentRef, |
102 |
| - group, |
103 |
| - version, |
104 |
| - text, |
105 |
| - kind, |
106 |
| - namespaced, |
107 |
| - isSelected, |
108 |
| - onClick, |
109 |
| -}) => ( |
110 |
| - <button |
111 |
| - type="button" |
112 |
| - className="dc__unset-button-styles" |
113 |
| - key={text} |
114 |
| - ref={parentRef} |
115 |
| - data-group={group} |
116 |
| - data-version={version} |
117 |
| - data-kind={kind} |
118 |
| - data-namespaced={namespaced} |
119 |
| - data-selected={isSelected} |
120 |
| - onClick={onClick} |
121 |
| - aria-label={`Select ${text}`} |
122 |
| - > |
123 |
| - <Tooltip content={text} placement="right"> |
124 |
| - <div |
125 |
| - className={`fs-13 pointer dc__ellipsis-right dc__align-left dc__border-radius-4-imp fw-4 pt-6 lh-20 pr-8 pb-6 pl-8 ${ |
126 |
| - isSelected ? 'bcb-1 cb-5' : 'cn-9 dc__hover-n50' |
127 |
| - }`} |
128 |
| - > |
129 |
| - {text} |
130 |
| - </div> |
131 |
| - </Tooltip> |
132 |
| - </button> |
133 |
| -) |
0 commit comments