Skip to content

Commit 590e086

Browse files
committed
feat: refactor DocLink imports & update related components
1 parent 9353dbb commit 590e086

File tree

16 files changed

+12
-12
lines changed

16 files changed

+12
-12
lines changed

src/Common/TippyCustomized.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import 'tippy.js/animations/shift-toward-subtle.css'
2323
import 'tippy.js/animations/shift-toward.css'
2424
import { TippyCustomizedProps, TippyTheme } from './Types'
2525
import { not, stopPropagation } from './Helper'
26-
import { DocLink } from '../Shared/DocLink'
26+
import { DocLink } from '@Shared/Components'
2727

2828
// This component will handle some of the new tippy designs and interactions
2929
// So this can be updated to support further for new features or interactions

src/Common/Types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import {
2828
ButtonProps,
2929
ComponentLayoutType,
3030
StatusType,
31+
DocLinkProps,
3132
} from '../Shared'
3233
import {
3334
ACTION_STATE,
3435
DEPLOYMENT_WINDOW_TYPE,
3536
DockerConfigOverrideType,
36-
DocLinkProps,
3737
RefVariableType,
3838
SortingOrder,
3939
TaskErrorObj,

src/Common/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
export * from '../Shared/DocLink'
1817
export * from './AddCDButton'
1918
export * from './API'
2019
export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb'

src/Shared/Components/CICDHistory/Artifacts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ import folder from '@Icons/ic-folder.svg'
2424
import { ReactComponent as ICHelpOutline } from '@Icons/ic-help.svg'
2525
import { ReactComponent as MechanicalOperation } from '@Icons/ic-mechanical-operation.svg'
2626
import noartifact from '@Images/no-artifact.webp'
27-
import { DocLink } from '@Shared/DocLink'
2827
import { getIsApprovalPolicyConfigured } from '@Shared/Helpers'
2928
import { useDownload } from '@Shared/Hooks'
3029

3130
import { ClipboardButton, extractImage, GenericEmptyState, ImageTagsContainer, useGetUserRoles } from '../../../Common'
3231
import { EMPTY_STATE_STATUS } from '../../constants'
32+
import { DocLink } from '../DocLink'
3333
import { TargetPlatformBadgeList } from '../TargetPlatforms'
3434
import { TERMINAL_STATUS_MAP } from './constants'
3535
import { ArtifactType, CIListItemType } from './types'

src/Shared/Components/CICDHistory/LogsRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { ReactComponent as ICArrow } from '@Icons/ic-caret-down.svg'
2323
import { ReactComponent as ICCollapseAll } from '@Icons/ic-collapse-all.svg'
2424
import { ReactComponent as ICExpandAll } from '@Icons/ic-expand-all.svg'
2525
import { ANSI_UP_REGEX, ComponentSizeType } from '@Shared/constants'
26-
import { DocLink } from '@Shared/DocLink'
2726
import { escapeRegExp, sanitizeTargetPlatforms } from '@Shared/Helpers'
2827
import { AppThemeType, getComponentSpecificThemeClass } from '@Shared/Providers'
2928

@@ -40,6 +39,7 @@ import {
4039
useRegisterShortcut,
4140
useUrlFilters,
4241
} from '../../../Common'
42+
import { DocLink } from '../DocLink'
4343
import {
4444
EVENT_STREAM_EVENTS_MAP,
4545
LOGS_RETRY_COUNT,
File renamed without changes.

0 commit comments

Comments
 (0)