Skip to content

Commit

Permalink
Appoint a rep QA (#33302)
Browse files Browse the repository at this point in the history
* Removed duplicate text

* Reintroduce rep status widget

* Added condition for authorize-outsize-va/names screen
  • Loading branch information
cosu419 authored Dec 3, 2024
1 parent cea1a47 commit 73100ed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const SelectAccreditedRepresentative = props => {
</p>
<va-link
href="/get-help-from-accredited-representative/find-rep"
text="Find a VA accredited representative or VSO (opens in new tab)"
text="Find a VA accredited representative or VSO"
external
/>
<FormNavButtons goBack={handleGoBack} goForward={handleGoForward} />
Expand Down
5 changes: 4 additions & 1 deletion src/applications/representative-appoint/config/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,10 @@ const formConfig = {
authorizeOutsideVANames: {
path: 'authorize-outside-va/names',
depends: formData => {
return isAttorneyOrClaimsAgent(formData);
return (
isAttorneyOrClaimsAgent(formData) &&
formData.authorizeOutsideVARadio === 'Yes'
);
},
title: 'Authorization for Access Outside of VA Systems',
uiSchema: authorizeOutsideVANames.uiSchema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@ import PropTypes from 'prop-types';
import { focusElement } from 'platform/utilities/ui';
import FormTitle from 'platform/forms-system/src/js/components/FormTitle';
import SaveInProgressIntro from 'platform/forms/save-in-progress/SaveInProgressIntro';
// import repStatusLoader from 'applications/static-pages/representative-status';
import {
// useStore,
connect,
} from 'react-redux';
import repStatusLoader from 'applications/static-pages/representative-status';
import { useStore, connect } from 'react-redux';
import { isLoggedIn } from 'platform/user/selectors';
import GetFormHelp from '../components/GetFormHelp';

const IntroductionPage = props => {
const { route, loggedIn } = props;
const { formConfig, pageList } = route;
// const store = useStore();
const store = useStore();

useEffect(() => {
focusElement('.va-nav-breadcrumbs-list');
}, []);

// // search from query params on page load
// useEffect(() => {
// repStatusLoader(store, 'representative-status', 3, false);
// }, []);
// search from query params on page load
useEffect(() => {
repStatusLoader(store, 'representative-status', 3, false);
}, []);

return (
<article className="schemaform-intro">
Expand All @@ -44,7 +41,7 @@ const IntroductionPage = props => {
</p>
<>
<div tabIndex="-1">
{/* <div data-widget-type="representative-status" /> */}
<div data-widget-type="representative-status" />
</div>
</>
</div>
Expand Down

0 comments on commit 73100ed

Please sign in to comment.