diff --git a/src/applications/accredited-representative-portal/containers/POARequestDetailsPage.jsx b/src/applications/accredited-representative-portal/containers/POARequestDetailsPage.jsx index 86f768f044a6..dea08ebbab95 100644 --- a/src/applications/accredited-representative-portal/containers/POARequestDetailsPage.jsx +++ b/src/applications/accredited-representative-portal/containers/POARequestDetailsPage.jsx @@ -1,9 +1,12 @@ import PropTypes from 'prop-types'; -import React from 'react'; -import { useFormik } from 'formik'; +import React, { useState } from 'react'; import { apiRequest } from '@department-of-veterans-affairs/platform-utilities/api'; -import { Link, useLoaderData, Form } from 'react-router-dom'; +import { Link, useLoaderData } from 'react-router-dom'; import { formatDateShort } from 'platform/utilities/date/index'; +import { + VaRadio, + VaRadioOption, +} from '@department-of-veterans-affairs/component-library/dist/react-bindings'; import mockPOARequestsResponse from '../mocks/mockPOARequestsResponse.json'; const checkAuthorizations = ( @@ -24,16 +27,16 @@ const checkAuthorizations = ( const POARequestDetailsPage = () => { const poaRequest = useLoaderData(); - - const formik = useFormik({ - initialValues: { - reason: '', - }, - // onSubmit: values => { - // console.log(values); - // }, - }); - + const [error, setError] = useState(false); + const handleChange = e => { + e.preventDefault(); + const radioValue = e.detail?.value; + if (radioValue) { + setError(false); + } else { + setError(true); + } + }; return (

@@ -169,103 +172,52 @@ const POARequestDetailsPage = () => { Back to power of attorney list -
-
- - Do you accept or decline this POA request? - -
- - -
-
- - -
-
- - -
- -
- - -
- -
- - -
- -
- - -
-
+ + + + + + + { > Submit Decision - +

); }; diff --git a/src/applications/accredited-representative-portal/sass/POARequestDetails.scss b/src/applications/accredited-representative-portal/sass/POARequestDetails.scss index 3e818acc72e1..2463f2c6c0ee 100644 --- a/src/applications/accredited-representative-portal/sass/POARequestDetails.scss +++ b/src/applications/accredited-representative-portal/sass/POARequestDetails.scss @@ -14,28 +14,6 @@ font-family: var(--font-source-sans); } - .usa-radio__label { - margin-top: 0.75rem; - margin-bottom: 0; - padding-left: 2rem; - position: relative; - cursor: pointer; - font-size: 1.06rem; - line-height: 1.3; - - &:before { - box-shadow: $vads-color-base 0px 0px 0px 2px; - height: 20px; - width: 20px; - margin-top: 0.064rem; - position: absolute; - left: 0; - } - } - - .usa-radio__input { - left: -999em; - } @media (min-width: $small-desktop-screen) { max-width: 654px; padding: 52px 38px; @@ -44,6 +22,12 @@ &-label { margin: 0; + + .poa-request-details__form--error & { + border-left: 0.25rem solid $vads-color-error; + padding-left: 1rem; + position: relative; + } } &-alert {