From c613f2373469c3e4d65cb751801139f752c1b474 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Sun, 8 Sep 2024 18:25:37 -0700 Subject: [PATCH] Remove obviated prop --- app/ui/lib/FieldLabel.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/ui/lib/FieldLabel.tsx b/app/ui/lib/FieldLabel.tsx index 1c350b4609..5fb298051c 100644 --- a/app/ui/lib/FieldLabel.tsx +++ b/app/ui/lib/FieldLabel.tsx @@ -17,7 +17,6 @@ interface FieldLabelProps { tip?: string optional?: boolean className?: string - hideOptionalTag?: boolean } export const FieldLabel = ({ @@ -28,14 +27,13 @@ export const FieldLabel = ({ optional, as, className, - hideOptionalTag, }: PropsWithChildren) => { const Component = as || 'label' return (
{children} - {optional && !hideOptionalTag && ( + {optional && ( // Announcing this optional text is unnecessary as the required attribute on the // form will be used