Skip to content

Commit

Permalink
feat: added red required asterisk to unit form
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed May 9, 2024
1 parent c843b49 commit 968cf0e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/renderer/components/blocks/forms/UnitForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
label="Unit Owner"
type="text"
readonly={readonly}
required={true}
initialValue={unit?.unitOwner}
/>
<Field
name="unitBlockStart"
label="Unit Block Start"
type="text"
readonly={readonly}
required={true}
initialValue={unit?.unitBlockStart}
/>

Expand All @@ -162,6 +164,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
label="Unit Block End"
type="text"
readonly={readonly}
required={true}
initialValue={unit?.unitBlockEnd}
/>

Expand All @@ -170,6 +173,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
label="Unit Count"
type="number"
readonly={readonly}
required={true}
initialValue={unit?.unitCount}
/>

Expand All @@ -179,6 +183,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
type="picklist"
options={picklistOptions?.countries}
readonly={readonly}
required={true}
initialValue={unit?.countryJurisdictionOfOwner}
/>

Expand All @@ -188,6 +193,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
type="picklist"
options={picklistOptions?.countries}
readonly={readonly}
required={true}
initialValue={unit?.inCountryJurisdictionOfOwner}
/>

Expand All @@ -197,6 +203,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
type="picklist"
options={picklistOptions?.unitType}
readonly={readonly}
required={true}
initialValue={unit?.unitType}
/>

Expand All @@ -206,6 +213,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
type="picklist"
options={picklistOptions?.unitStatus}
readonly={readonly}
required={true}
initialValue={unit?.unitStatus}
/>

Expand All @@ -214,6 +222,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
label="Unit Status Reason"
type="text"
readonly={readonly}
required={true}
initialValue={unit?.unitStatusReason}
/>

Expand All @@ -222,6 +231,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
label="Vintage Year"
type="number"
readonly={readonly}
required={true}
initialValue={unit?.vintageYear}
/>
</div>
Expand Down Expand Up @@ -267,6 +277,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
type="picklist"
options={picklistOptions?.correspondingAdjustmentStatus}
readonly={readonly}
required={true}
initialValue={unit?.correspondingAdjustmentStatus}
/>

Expand All @@ -276,6 +287,7 @@ const UnitForm = forwardRef<UnitFormRef, UnitFormProps>(({ readonly = false, dat
type="picklist"
options={picklistOptions?.correspondingAdjustmentDeclaration}
readonly={readonly}
required={true}
initialValue={unit?.correspondingAdjustmentDeclaration}
/>
</div>
Expand Down

0 comments on commit 968cf0e

Please sign in to comment.