Skip to content

Commit

Permalink
fix(package-actions): Wrap RespondToRai with package action checks (#274
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Kevin Haube authored Dec 21, 2023
1 parent 503ffba commit a5bbc53
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/services/ui/src/pages/actions/RespondToRai.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { useGetUser } from "@/api/useGetUser";
import { submit } from "@/api/submissionService";
import { useGetItem } from "@/api";
import { buildActionUrl } from "@/lib";
import { PackageActionForm } from "@/pages/actions/PackageActionForm";

const formSchema = z.object({
additionalInformation: z.string().max(4000).optional(),
Expand Down Expand Up @@ -60,7 +61,7 @@ const FormDescriptionText = () => {
);
};

export const RespondToRai = () => {
export const RespondToRaiForm = () => {
const { id, type } = useParams<{
id: string;
type: Action;
Expand Down Expand Up @@ -316,3 +317,9 @@ export const RespondToRai = () => {
</SimplePageContainer>
);
};

export const RespondToRai = () => (
<PackageActionForm>
<RespondToRaiForm />
</PackageActionForm>
);

0 comments on commit a5bbc53

Please sign in to comment.