Skip to content

Conversation

mikewuu
Copy link
Contributor

@mikewuu mikewuu commented Mar 16, 2024

closes #395

Notable things

  • Also adds useUpdateClimateSettingSchedule

Screenshots

CleanShot 2024-03-16 at 13 07 01

visible={isError}
automaticVisibility
/>
</>
Copy link
Contributor Author

@mikewuu mikewuu Mar 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge diff here because of nesting inside a fragment, but it really only:

adding manual override switch

    <Switch
                    checked={isManualOverrideAllowed}
                    onChange={(checked) => {
                      mutate({
                        climate_setting_schedule_id:
                          climateSettingSchedule.climate_setting_schedule_id,
                        manual_override_allowed: checked,
                      })
                    }}
                  />

and the snackbars:

    <Snackbar
        message={t.manualOverrideSuccess}
        variant='success'
        visible={isSuccess}
        automaticVisibility
      />

      <Snackbar
        message={t.manualOverrideError}
        variant='error'
        visible={isError}
        automaticVisibility
      />

@mikewuu mikewuu merged commit 065ad1e into main Mar 18, 2024
@mikewuu mikewuu deleted the climate-manual branch March 18, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toggle manual override
2 participants