Skip to content

Commit

Permalink
fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiffany Vu authored and Tiffany Vu committed Oct 11, 2024
1 parent 2338c15 commit acd1ac9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export const postSubmissionForms: Record<
["Medicaid SPA"]: WithdrawRaiForm,
["CHIP SPA"]: WithdrawRaiForm,
},
"enable-withdraw-rai": {
"enable-rai-withdraw": {
["1915(b)"]: EnableWithdrawRaiForm,
["1915(c)"]: EnableWithdrawRaiForm,
["Medicaid SPA"]: EnableWithdrawRaiForm,
["CHIP SPA"]: EnableWithdrawRaiForm,
},
"disable-withdraw-rai": {
"disable-rai-withdraw": {
["1915(b)"]: DisableWithdrawRaiForm,
["1915(c)"]: DisableWithdrawRaiForm,
["Medicaid SPA"]: DisableWithdrawRaiForm,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export const EnableWithdrawRaiForm = () => {
package will be able to be withdrawn by the state"
showPreSubmissionMessage={false}
requiredFields={false}
bannerPostSubmission={{
header: "RAI response withdrawal enabled",
body: `The state will be able to withdraw its RAI response. It may take up to a minute for this change to be applied.`,
variant: "success",
}}
/>
);
};
Expand All @@ -41,6 +46,11 @@ export const DisableWithdrawRaiForm = () => {
formDescription="The state will not be able to withdraw its RAI response. It may take up to a minute for this change to be applied."
showPreSubmissionMessage={false}
requiredFields={false}
bannerPostSubmission={{
header: "RAI response withdrawal disabled",
body: `The state will not be able to withdraw its RAI response. It may take up to a minute for this change to be applied.`,
variant: "success",
}}
/>
);
};
10 changes: 7 additions & 3 deletions react-app/src/features/package/package-activity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,13 @@ export const PackageActivity: FC<opensearch.changelog.Document> = (props) => {
// case "legacy-withdraw-rai-request":
// return ["RAI response withdrawn requested", PA_ResponseWithdrawn];

// return needs another parameter
default:
return [BLANK_VALUE];
}
}, [props.event]);

if (LABEL === BLANK_VALUE) return null;
return (
<AccordionItem key={props.id} value={props.id}>
<AccordionTrigger className="bg-gray-100 px-3">
Expand Down Expand Up @@ -371,9 +373,11 @@ export const PackageActivities = () => {
className="flex flex-col gap-2"
defaultValue={hook.accordianDefault}
>
{hook.data?.map((CL) => (
<PackageActivity {...CL._source} key={CL._source.id} />
))}
{hook.data?.map((CL) => {
console.log({ ...CL._source }, "CLLLL");
console.log(CL._source.id, "idddd");
return <PackageActivity {...CL._source} key={CL._source.id} />;
})}
</Accordion>
</DetailsSection>
);
Expand Down

0 comments on commit acd1ac9

Please sign in to comment.