Skip to content

Commit

Permalink
Fix classnames usage in hostdetails (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster authored Dec 19, 2023
1 parent aca0d28 commit 783133b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions assets/js/pages/HostDetailsPage/HostDetails.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import { get } from 'lodash';
import classNames from 'classnames';
import { EOS_CLEAR_ALL, EOS_PLAY_CIRCLE, EOS_SETTINGS } from 'eos-icons-react';

import { agentVersionWarning } from '@lib/agent';
Expand Down Expand Up @@ -144,11 +145,16 @@ function HostDetails({
disabled={!canStartExecution(selectedChecks, savingChecks)}
>
<EOS_PLAY_CIRCLE
className={`${
canStartExecution(selectedChecks, savingChecks)
? 'fill-white'
: 'fill-gray-200'
} inline-block align-sub`}
className={classNames('inline-block, align-sub', {
'fill-white': canStartExecution(
selectedChecks,
savingChecks
),
'fill-gray-200': !canStartExecution(
selectedChecks,
savingChecks
),
})}
/>{' '}
Start Execution
</Button>
Expand Down

0 comments on commit 783133b

Please sign in to comment.