Skip to content

Commit

Permalink
Fix classNames usage in HanaClusterDetails (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster authored Dec 19, 2023
1 parent baea761 commit 694f4a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions assets/js/pages/ClusterDetails/HanaClusterDetails.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { get, groupBy } from 'lodash';
import classNames from 'classnames';

import { RUNNING_STATES } from '@state/lastExecutions';

Expand Down Expand Up @@ -152,9 +153,10 @@ function HanaClusterDetails({
disabled={startExecutionDisabled}
>
<EOS_PLAY_CIRCLE
className={`${
!startExecutionDisabled ? 'fill-white' : 'fill-gray-200'
} inline-block align-sub`}
className={classNames('inline-block align-sub', {
'fill-white': !startExecutionDisabled,
'fill-gray-200': startExecutionDisabled,
})}
/>{' '}
Start Execution
</Button>
Expand Down
2 changes: 1 addition & 1 deletion assets/js/pages/HostDetailsPage/HostDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function HostDetails({
disabled={!canStartExecution(selectedChecks, savingChecks)}
>
<EOS_PLAY_CIRCLE
className={classNames('inline-block, align-sub', {
className={classNames('inline-block align-sub', {
'fill-white': canStartExecution(
selectedChecks,
savingChecks
Expand Down

0 comments on commit 694f4a6

Please sign in to comment.