Skip to content

Commit c68c203

Browse files
committed
Update format error
1 parent 7f43d9f commit c68c203

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/lib/ui/thermostat/ClimateSettingStatus.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ function ClimateSettingIcon(props: {
4949

5050
return (
5151
<div
52-
className={classNames(
53-
'seam-climate-setting-status-icon',
54-
`seam-climate-setting-status-icon-${mode}`
55-
)}
52+
className={classNames('seam-climate-setting-status-icon', {
53+
'seam-climate-setting-status-icon-cool': mode === 'cool',
54+
'seam-climate-setting-status-icon-heat': mode === 'heat',
55+
'seam-climate-setting-status-icon-heat-cool': mode === 'heat_cool',
56+
'seam-climate-setting-status-icon-off': mode === 'off',
57+
})}
5658
>
5759
{mode === 'cool' && <ThermostatCoolIcon />}
5860
{mode === 'heat' && <ThermostatHeatIcon />}

src/styles/_thermostat.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
align-items: center;
341341
font-size: 14px;
342342

343-
.seam-climate-setting-status-icon-heat_cool {
343+
.seam-climate-setting-status-icon-heat-cool {
344344
font-size: 19px;
345345
}
346346
}

0 commit comments

Comments
 (0)