From 94354a4d4b2e33ea3ca92fa422fdcf570a7f6b0e Mon Sep 17 00:00:00 2001 From: tiffanyvu Date: Mon, 13 Jan 2025 13:55:50 -0800 Subject: [PATCH] format --- react-app/src/features/package/package-actions/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/react-app/src/features/package/package-actions/index.tsx b/react-app/src/features/package/package-actions/index.tsx index 790444b74c..57b532ab66 100644 --- a/react-app/src/features/package/package-actions/index.tsx +++ b/react-app/src/features/package/package-actions/index.tsx @@ -1,6 +1,6 @@ import { useGetItem, useGetPackageActions } from "@/api"; import { LoadingSpinner } from "@/components"; -import { DETAILS_ORIGIN, ORIGIN, mapActionLabel } from "@/utils"; +import { WAIVER_SUBMISSION_ORIGIN, DETAILS_ORIGIN, ORIGIN, mapActionLabel } from "@/utils"; import { DetailCardWrapper } from ".."; import { FC } from "react"; import { Link, useLocation } from "react-router"; @@ -39,7 +39,10 @@ export const PackageActionsCard: FC<{ id: string }> = ({ id }) => { to={{ pathname: `/actions/${type}/${item.data?._source.authority}/${id}`, search: new URLSearchParams({ - [ORIGIN]: DETAILS_ORIGIN, + [ORIGIN]: + type === "amend-waiver" || type === "temporary-extension" + ? WAIVER_SUBMISSION_ORIGIN + : DETAILS_ORIGIN, }).toString(), }} className="text-sky-700 font-semibold text-lg"