Skip to content

Commit

Permalink
fix toast
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Oct 28, 2024
1 parent 632b41e commit f31c437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/components/Dashboard/PaMessagesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import useSWR, { mutate } from "swr";
import { useRouteToRouteIDsMap } from "Hooks/useRouteToRouteIDsMap";
import { updateExistingPaMessage } from "Utils/api";
import { UpdatePaMessageBody } from "Models/pa_message";
import ErrorToast from "Components/ErrorToast";
import Toast from "Components/Toast";

type StateFilter = "active" | "future" | "past";

Expand Down Expand Up @@ -214,9 +214,9 @@ const PaMessagesPage: ComponentType = () => {
</Col>
</Row>
</Container>
<ErrorToast
errorMessage={errorMessage}
errors={[]}
<Toast
variant="warning"
message={errorMessage}
onClose={() => {
setErrorMessage(null);
}}
Expand Down

0 comments on commit f31c437

Please sign in to comment.