From 44804f65f0033ecac810aeec59ed09c71fe2b75c Mon Sep 17 00:00:00 2001 From: Nate Elliott Date: Mon, 9 Sep 2024 09:37:49 -0500 Subject: [PATCH] 10427 More uses of InlineLink in new petition flow --- .../src/ustc-ui/InlineLink/InlineLink.tsx | 8 ++-- web-client/src/views/BeforeStartingCase.tsx | 21 ++--------- .../src/views/Dashboards/FilingFeeOptions.tsx | 10 ++--- .../CorporateDisclosureUpload.tsx | 13 ++----- .../PetitionerInformation.tsx | 10 ++--- .../UpdatedFilePetitionStep4.tsx | 37 +++---------------- .../UpdatedFilePetitionStep5.tsx | 21 ++--------- .../UpdatedFilePetitionStep7.tsx | 13 ++----- 8 files changed, 31 insertions(+), 102 deletions(-) diff --git a/web-client/src/ustc-ui/InlineLink/InlineLink.tsx b/web-client/src/ustc-ui/InlineLink/InlineLink.tsx index c91738c206b..b10a8d2dc3f 100644 --- a/web-client/src/ustc-ui/InlineLink/InlineLink.tsx +++ b/web-client/src/ustc-ui/InlineLink/InlineLink.tsx @@ -9,6 +9,7 @@ export const InlineLink = ({ href, icon, iconSize = '1x', + shouldWrapText = false, tooltip, }: { children: string | React.ReactNode; @@ -17,19 +18,20 @@ export const InlineLink = ({ href: string; iconSize?: '1x' | '2x' | '3x' | '4x' | '5x'; tooltip?: string; + shouldWrapText?: boolean; }) => { const classes = classNames( - 'usa-link--external no-wrap', + 'usa-link--external', className, tooltip && 'usa-tooltip', - // icon && !shouldWrapText && 'no-wrap', + !shouldWrapText && 'no-wrap', ); return ( diff --git a/web-client/src/views/BeforeStartingCase.tsx b/web-client/src/views/BeforeStartingCase.tsx index 846775fb270..d2684c50f8e 100644 --- a/web-client/src/views/BeforeStartingCase.tsx +++ b/web-client/src/views/BeforeStartingCase.tsx @@ -211,16 +211,9 @@ export const BeforeStartingCase = connect(
To file a case on behalf of someone else, you must be authorized to practice before this Court as provided by the{' '} - + { '. Enrolled agents, certified public accountants, and attorneys who are not admitted to practice before the Court are not eligible to represent a party.' } @@ -242,18 +235,12 @@ export const BeforeStartingCase = connect( "Download and fill out the form if you haven't already done so:" }
- + diff --git a/web-client/src/views/Dashboards/FilingFeeOptions.tsx b/web-client/src/views/Dashboards/FilingFeeOptions.tsx index cb99e634fd2..df36960f155 100644 --- a/web-client/src/views/Dashboards/FilingFeeOptions.tsx +++ b/web-client/src/views/Dashboards/FilingFeeOptions.tsx @@ -1,5 +1,6 @@ import { Accordion, AccordionItem } from '../../ustc-ui/Accordion/Accordion'; import { Button } from '../../ustc-ui/Button/Button'; +import { InlineLink } from '@web-client/ustc-ui/InlineLink/InlineLink'; import React from 'react'; export const FilingFeeOptions = function () { @@ -50,18 +51,13 @@ export const FilingFeeOptions = function () {

Can’t afford to pay the filing fee? - + diff --git a/web-client/src/views/StartCaseUpdated/CorporateDisclosureUpload.tsx b/web-client/src/views/StartCaseUpdated/CorporateDisclosureUpload.tsx index f268a3966c3..b171ce230df 100644 --- a/web-client/src/views/StartCaseUpdated/CorporateDisclosureUpload.tsx +++ b/web-client/src/views/StartCaseUpdated/CorporateDisclosureUpload.tsx @@ -1,6 +1,6 @@ -import { Button } from '@web-client/ustc-ui/Button/Button'; import { FormGroup } from '@web-client/ustc-ui/FormGroup/FormGroup'; import { InfoNotificationComponent } from '@web-client/views/InfoNotification'; +import { InlineLink } from '@web-client/ustc-ui/InlineLink/InlineLink'; import { MAX_FILE_SIZE_MB } from '@shared/business/entities/EntityConstants'; import { StateDrivenFileInput } from '@web-client/views/FileDocument/StateDrivenFileInput'; import React from 'react'; @@ -26,16 +26,9 @@ export function CorporateDisclosureUpload({
{"Download and fill out the form if you haven't already done so:"}
- +
- +
diff --git a/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep4.tsx b/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep4.tsx index 218b9da5b23..a561af5c046 100644 --- a/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep4.tsx +++ b/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep4.tsx @@ -1,5 +1,4 @@ -import { Button } from '@web-client/ustc-ui/Button/Button'; -import { Icon } from '@web-client/ustc-ui/Icon/Icon'; +import { InlineLink } from '@web-client/ustc-ui/InlineLink/InlineLink'; import { ProcedureType } from '@web-client/views/StartCase/ProcedureType'; import { TrialCity } from '@web-client/views/StartCase/TrialCity'; import { UpdatedFilePetitionButtons } from '@web-client/views/StartCaseUpdated/UpdatedFilePetitionButtons'; @@ -34,21 +33,9 @@ export const UpdatedFilePetitionStep4 = connect( If your case qualifies, you may choose to have it handled as a small tax case. The Court handles small tax cases differently. - + + Which case procedure should I choose? +
{' '} - +
Download and fill out the form if you haven't already done so: - + + Statement of Taxpayer Identification Number (T.C. Form 4). +
Submit an - + This form requires detailed financial information and must be signed under penalty of perjury.