@@ -2,6 +2,7 @@ import { type MouseEvent } from 'react'
22import { useStoreContext } from '~/context/context'
33import { type PlanAction , EnumPlanAction } from '~/context/plan'
44import useActiveFocus from '~/hooks/useActiveFocus'
5+ import { EnumVariant } from '~/types/enum'
56import { includes , isFalse , isStringEmptyOrNil } from '~/utils'
67import { Button } from '../button/Button'
78import { usePlan } from './context'
@@ -93,6 +94,7 @@ export default function PlanActions({
9394 onClick = { handleRun }
9495 autoFocus
9596 ref = { setFocus }
97+ variant = { EnumVariant . Primary }
9698 >
9799 < span >
98100 { getActionName ( planAction , [
@@ -114,6 +116,7 @@ export default function PlanActions({
114116 onClick = { handleApply }
115117 disabled = { isApplying || disabled }
116118 ref = { setFocus }
119+ variant = { EnumVariant . Primary }
117120 >
118121 { getActionName (
119122 planAction ,
@@ -129,7 +132,7 @@ export default function PlanActions({
129132 { isProcessing && (
130133 < Button
131134 onClick = { handleCancel }
132- variant = "danger"
135+ variant = { EnumVariant . Danger }
133136 className = "justify-self-end"
134137 disabled = { isCanceling || disabled }
135138 >
@@ -140,7 +143,7 @@ export default function PlanActions({
140143 { ( isRun || isRunning || isApply || isApplying ) && (
141144 < p className = "ml-2 text-xs max-w-sm" >
142145 < span > Plan for</ span >
143- < b className = "text-secondary -500 font-bold mx-1" >
146+ < b className = "text-primary -500 font-bold mx-1" >
144147 { environment . name }
145148 </ b >
146149 < span className = "inline-block mr-1" > environment</ span >
@@ -197,7 +200,7 @@ export default function PlanActions({
197200 ] . every ( isFalse ) && (
198201 < Button
199202 onClick = { handleReset }
200- variant = "alternative"
203+ variant = { EnumVariant . Neutral }
201204 disabled = {
202205 includes (
203206 [
@@ -219,7 +222,7 @@ export default function PlanActions({
219222 ) }
220223 < Button
221224 onClick = { handleClose }
222- variant = { isDone ? 'secondary' : 'alternative' }
225+ variant = { isDone ? EnumVariant . Primary : EnumVariant . Neutral }
223226 disabled = {
224227 includes (
225228 [
0 commit comments