Skip to content

Commit

Permalink
fix: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed May 28, 2024
1 parent b2356a0 commit cb37b44
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,13 @@ const ServiceSettings: React.FC = () => {
<Switch
name="service.status"
color="primary"
checked={statusForm.values.status == "online"}
checked={statusForm.values.status === "online"}
onChange={() =>
statusForm.setFieldValue(
"status",
statusForm.values.status == "online" ? "offline" : "online",
statusForm.values.status === "online"
? "offline"
: "online",
)
}
/>
Expand All @@ -267,6 +269,9 @@ const ServiceSettings: React.FC = () => {
A service must be online to be accessed by the public, and to enable
analytics gathering.
</Typography>
<Typography variant="body1">
Offline services can still be edited and published as normal.
</Typography>
<Box>
<Button
type="submit"
Expand Down

0 comments on commit cb37b44

Please sign in to comment.