Skip to content

feat(site): dismiss health section warnings #11059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix type
  • Loading branch information
BrunoQuaresma committed Dec 6, 2023
commit 711ebeebe64e9dd4d8f9d6aa151b5b8460735180
3 changes: 2 additions & 1 deletion site/src/pages/HealthPage/DismissWarningButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { useMutation, useQuery, useQueryClient } from "react-query";
import { displaySuccess } from "components/GlobalSnackbar/utils";
import LoadingButton from "@mui/lab/LoadingButton";
import Skeleton from "@mui/material/Skeleton";
import { HealthSection } from "api/typesGenerated";

export const DismissWarningButton = (props: { healthcheck: string }) => {
export const DismissWarningButton = (props: { healthcheck: HealthSection }) => {
const queryClient = useQueryClient();
const healthSettingsQuery = useQuery(healthSettings());
// They call the same mutation but are used in diff contexts so we don't want
Expand Down