Skip to content

Commit

Permalink
removed toggler and WIP on form, it should be handled by widget (#32218)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmessina1010 authored Oct 3, 2024
1 parent 877197f commit f607ad2
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions src/applications/ivc-champva/10-7959f-2/containers/App.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Toggler } from 'platform/utilities/feature-toggles';
import {
DowntimeNotification,
externalServices,
} from '@department-of-veterans-affairs/platform-monitoring/DowntimeNotification';
import RoutedSavableApp from 'platform/forms/save-in-progress/RoutedSavableApp';
import WIP from '../../shared/components/WIP';
import formConfig from '../config/form';

export default function App({ location, children }) {
Expand All @@ -23,30 +21,15 @@ export default function App({ location, children }) {

return (
<div className="vads-l-grid-container large-screen:vads-u-padding-x--0">
<Toggler toggleName={Toggler.TOGGLE_NAMES.form107959f2}>
<Toggler.Enabled>
<va-breadcrumbs breadcrumb-list={bcString} />
<RoutedSavableApp formConfig={formConfig} currentLocation={location}>
<DowntimeNotification
appTitle={`CHAMPVA Form ${formConfig.formId}`}
dependencies={[externalServices.pega]}
>
{children}
</DowntimeNotification>
</RoutedSavableApp>
</Toggler.Enabled>
<Toggler.Disabled>
<br />
<WIP
content={{
description:
'We’re rolling out the Foreign Medical Program (FMP) claims (VA Form 10-7959f-2) in stages. It’s not quite ready yet. Please check back again soon.',
redirectLink: '/',
redirectText: 'Return to VA home page',
}}
/>
</Toggler.Disabled>
</Toggler>
<va-breadcrumbs breadcrumb-list={bcString} />
<RoutedSavableApp formConfig={formConfig} currentLocation={location}>
<DowntimeNotification
appTitle={`CHAMPVA Form ${formConfig.formId}`}
dependencies={[externalServices.pega]}
>
{children}
</DowntimeNotification>
</RoutedSavableApp>
</div>
);
}
Expand Down

0 comments on commit f607ad2

Please sign in to comment.