Skip to content

Commit

Permalink
🚸 Disable +/- temperature control while loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Dec 9, 2024
1 parent e852322 commit fc9312d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/TemperatureAdjuster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const TemperatureAdjuster = ({
<Button
variant="primary"
onClick={() => onTemperatureChange(currentTemperature - 0.5)}
disabled={loading}
>
<FontAwesomeIcon icon={"minus"} />
</Button>
Expand All @@ -26,6 +27,7 @@ const TemperatureAdjuster = ({
<Button
variant="primary"
onClick={() => onTemperatureChange(currentTemperature + 0.5)}
disabled={loading}
>
<FontAwesomeIcon icon={"plus"} />
</Button>
Expand Down

0 comments on commit fc9312d

Please sign in to comment.