Skip to content

Commit b96da04

Browse files
committed
add shouldNotWrap prop to form fields
1 parent 011b581 commit b96da04

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/components/EmailInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const EmailInput: React.FC<SignupFormInputProps> = ({
5353
placeholder="bsimpson@springfield-elementary.edu"
5454
renderBeforeInput={IconEmailLine}
5555
renderLabel="Email Address"
56+
shouldNotWrap
5657
type="email"
5758
value={value}
5859
/>

src/components/FeatureSelect.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ const FeatureSelect: React.FC<SignupFormMultiSelectProps> = ({
300300
selectedOptionIds.length > 0 ? renderTags() : IconLaunchLine
301301
}
302302
renderLabel="Features"
303+
shouldNotWrap={selectedOptionIds.length < 1}
303304
>
304305
{renderGroup()}
305306
</Select>

src/components/InstitutionInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const InstitutionInput: React.FC<SignupFormInputProps> = ({
4949
placeholder="Springfield Elementary"
5050
renderBeforeInput={IconHomeLine}
5151
renderLabel="Institution"
52+
shouldNotWrap
5253
type="text"
5354
value={value}
5455
/>

src/components/NameInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const NameInput: React.FC<SignupFormInputProps> = ({
4747
placeholder="Bart Simpson"
4848
renderBeforeInput={IconUserLine}
4949
renderLabel="Name"
50+
shouldNotWrap
5051
type="text"
5152
value={value}
5253
/>

src/components/RoleSelect.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ const RoleSelect: React.FC<SignupFormSelectProps> = ({
199199
placeholder="Student"
200200
renderBeforeInput={IconEducatorsLine}
201201
renderLabel="Role"
202+
shouldNotWrap
202203
>
203204
{renderGroup()}
204205
</Select>

0 commit comments

Comments
 (0)