Skip to content

Commit

Permalink
Style updates to form
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Haube committed Nov 6, 2023
1 parent 4658876 commit 28f5988
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
34 changes: 22 additions & 12 deletions src/services/ui/src/pages/actions/EnableRaiResponseWithdraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const EnableRaiResponseWithdraw = () => {
type: Action;
}>();
const { data, isLoading, error } = useGetItem(id!);
// TODO: Hook into endpoint
// TODO: Logic for enable vs disable

// Keeps aria stuff and classes condensed
const SectionTemplate = ({
Expand All @@ -24,10 +26,10 @@ export const EnableRaiResponseWithdraw = () => {
value: string;
}) => (
<div className="flex flex-col my-8">
<label className="font-semibold" id="package-id-label">
{label}
</label>
<span aria-labelledby="package-id-label">{value}</span>
<label id="package-id-label">{label}</label>
<span className="text-xl" aria-labelledby="package-id-label">
{value}
</span>
</div>
);

Expand All @@ -38,12 +40,18 @@ export const EnableRaiResponseWithdraw = () => {
<BreadCrumbs
options={BREAD_CRUMB_CONFIG_PACKAGE_DETAILS({ id: id, action: type })}
/>
<h1>Enable RAI Response Withdraw</h1>
<p>
Once you submit this form, the most recent Formal RAI Response for this
package will be able to be withdrawn by the state.{" "}
<b>If you leave this page, you will lose your progress on this form.</b>
</p>
<div className="max-w-2xl">
<h1 className="text-2xl font-semibold mt-8 mb-2">
Enable RAI Response Withdraw
</h1>
<p>
Once you submit this form, the most recent Formal RAI Response for
this package will be able to be withdrawn by the state.{" "}
<b>
If you leave this page, you will lose your progress on this form.
</b>
</p>
</div>
<section>
<SectionTemplate label={"Package ID"} value={id} />
<SectionTemplate
Expand All @@ -54,8 +62,10 @@ export const EnableRaiResponseWithdraw = () => {
}
/>
</section>
<Button>Cancel</Button>
<Button>Submit</Button>
<div className="flex gap-2">
<Button variant="outline">Cancel</Button>
<Button>Enable RAI Response Withdraw</Button>
</div>
</SimplePageContainer>
);
};
2 changes: 1 addition & 1 deletion src/services/ui/src/pages/detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SubmissionInfo,
} from "@/components";
import { useGetUser } from "@/api/useGetUser";
import { CognitoUserAttributes, ItemResult } from "shared-types";
import { ItemResult } from "shared-types";
import { useQuery } from "@/hooks";
import { useGetItem } from "@/api";
import { BreadCrumbs } from "@/components/BreadCrumb";
Expand Down

0 comments on commit 28f5988

Please sign in to comment.