Skip to content

Commit

Permalink
Improve onReport signature
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-garcia committed Mar 29, 2023
1 parent 3a24e24 commit 7f7f9a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/shared/snackbar/snackbar.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { ReactComponent as ErrorIcon } from "src/assets/icons/error.svg";
import { ReactComponent as SuccessIcon } from "src/assets/icons/success.svg";
import { ReactComponent as CloseIcon } from "src/assets/icons/xmark.svg";
import { SNACKBAR_AUTO_HIDE_DURATION } from "src/constants";
import { Env, Message } from "src/domain";
import { Env, Message, ReportFormEnvEnabled } from "src/domain";
import { useSnackbarStyles } from "src/views/shared/snackbar/snackbar.styles";

interface SnackbarProps {
message: Message;
onClose: () => void;
onReport: (error: string, reportForm: Extract<Env["reportForm"], { isEnabled: true }>) => void;
onReport: (error: string, reportForm: ReportFormEnvEnabled) => void;
reportForm: Env["reportForm"];
}

Expand Down

0 comments on commit 7f7f9a1

Please sign in to comment.