Skip to content

Commit

Permalink
chore: add return type to getButtonConfig in CordonNodeModal
Browse files Browse the repository at this point in the history
  • Loading branch information
Elessar1802 committed Jan 27, 2025
1 parent d24a69a commit e1f851c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ClusterNodes/NodeActions/CordonNodeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
ConfirmationModal,
CORDON_NODE_MODAL_MESSAGING,
ConfirmationModalVariantType,
ConfirmationModalProps,
} from '@devtron-labs/devtron-fe-common-lib'
import { CordonNodeModalType } from '../types'

Expand Down Expand Up @@ -68,7 +69,7 @@ const CordonNodeModal = ({ name, version, kind, unschedulable, closePopup }: Cor

const { CordonIcon, UncordonIcon } = CORDON_NODE_MODAL_MESSAGING

const getButtonConfig = () => {
const getButtonConfig = (): ConfirmationModalProps['buttonConfig'] => {
const secondaryButtonConfig = {
dataTestId: 'cancel-button',
text: CORDON_NODE_MODAL_MESSAGING.cancel,
Expand Down

0 comments on commit e1f851c

Please sign in to comment.