Skip to content

Commit

Permalink
Merge branch 'main' into admin-noso2
Browse files Browse the repository at this point in the history
  • Loading branch information
andieswift committed Jan 27, 2025
2 parents 006e7fc + 89430c4 commit f2e18a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions react-app/src/features/package/package-actions/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f2e18a5

Please sign in to comment.