Skip to content

Commit 1a41345

Browse files
committed
linting
1 parent 1830a28 commit 1a41345

File tree

3 files changed

+14
-46
lines changed

3 files changed

+14
-46
lines changed

backend/tests/unit/test_intake_form_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def test_participant_no_cancer_experience(db_session, test_user):
635635
"pronouns": ["she", "her"],
636636
"ethnic_group": ["Asian", "Indigenous"],
637637
"marital_status": "Single",
638-
"has_kids": "no",
638+
"has_kids": "No",
639639
},
640640
# No cancer_experience, caregiver_experience, or loved_one sections
641641
}
@@ -848,7 +848,7 @@ def test_volunteer_no_cancer_experience(db_session, test_user):
848848
"pronouns": ["he", "him"],
849849
"ethnic_group": ["White"],
850850
"marital_status": "Single",
851-
"has_kids": "no",
851+
"has_kids": "No",
852852
},
853853
# No cancer_experience, caregiver_experience, or loved_one sections
854854
}

frontend/src/components/ui/multi-select-dropdown.tsx

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,7 @@ export const MultiSelectDropdown: React.FC<MultiSelectDropdownProps> = ({
8383
e.currentTarget.style.boxShadow = '0 1px 2px 0 rgba(0, 0, 0, 0.05)';
8484
}}
8585
>
86-
<Box
87-
display="flex"
88-
alignItems="center"
89-
flex="1"
90-
gap="8px"
91-
flexWrap="wrap"
92-
minHeight="32px"
93-
>
86+
<Box display="flex" alignItems="center" flex="1" gap="8px" flexWrap="wrap" minHeight="32px">
9487
{selectedValues.length > 0 ? (
9588
selectedValues.map((value) => (
9689
<Box
@@ -136,22 +129,12 @@ export const MultiSelectDropdown: React.FC<MultiSelectDropdownProps> = ({
136129
</Box>
137130
))
138131
) : (
139-
<Text
140-
fontFamily="system-ui, -apple-system, sans-serif"
141-
fontSize="14px"
142-
color="#9ca3af"
143-
>
132+
<Text fontFamily="system-ui, -apple-system, sans-serif" fontSize="14px" color="#9ca3af">
144133
{placeholder}
145134
</Text>
146135
)}
147136
</Box>
148-
<Box
149-
as="span"
150-
fontSize="12px"
151-
color="#9ca3af"
152-
ml="8px"
153-
flexShrink={0}
154-
>
137+
<Box as="span" fontSize="12px" color="#9ca3af" ml="8px" flexShrink={0}>
155138
{isOpen ? '▲' : '▼'}
156139
</Box>
157140
</button>

frontend/src/components/ui/single-select-dropdown.tsx

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,7 @@ export const SingleSelectDropdown: React.FC<SingleSelectDropdownProps> = ({
8080
e.currentTarget.style.boxShadow = '0 1px 2px 0 rgba(0, 0, 0, 0.05)';
8181
}}
8282
>
83-
<Box
84-
display="flex"
85-
alignItems="center"
86-
flex="1"
87-
gap="8px"
88-
flexWrap="wrap"
89-
minHeight="32px"
90-
>
83+
<Box display="flex" alignItems="center" flex="1" gap="8px" flexWrap="wrap" minHeight="32px">
9184
{selectedValue ? (
9285
<Box
9386
display="inline-flex"
@@ -130,22 +123,12 @@ export const SingleSelectDropdown: React.FC<SingleSelectDropdownProps> = ({
130123
</button>
131124
</Box>
132125
) : (
133-
<Text
134-
fontFamily="system-ui, -apple-system, sans-serif"
135-
fontSize="14px"
136-
color="#9ca3af"
137-
>
126+
<Text fontFamily="system-ui, -apple-system, sans-serif" fontSize="14px" color="#9ca3af">
138127
{placeholder}
139128
</Text>
140129
)}
141130
</Box>
142-
<Box
143-
as="span"
144-
fontSize="12px"
145-
color="#9ca3af"
146-
ml="8px"
147-
flexShrink={0}
148-
>
131+
<Box as="span" fontSize="12px" color="#9ca3af" ml="8px" flexShrink={0}>
149132
{isOpen ? '▲' : '▼'}
150133
</Box>
151134
</button>
@@ -189,12 +172,14 @@ export const SingleSelectDropdown: React.FC<SingleSelectDropdownProps> = ({
189172
appearance: 'none',
190173
WebkitAppearance: 'none',
191174
MozAppearance: 'none',
192-
border: selectedValue === option ? `1px solid ${COLORS.teal}` : '1px solid #d1d5db',
175+
border:
176+
selectedValue === option ? `1px solid ${COLORS.teal}` : '1px solid #d1d5db',
193177
borderRadius: '3px',
194178
backgroundColor: selectedValue === option ? COLORS.teal : 'white',
195-
backgroundImage: selectedValue === option
196-
? "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5L2 6l1.5-1.5L4.5 6L8.5 2L10 3z'/%3E%3C/svg%3E\")"
197-
: 'none',
179+
backgroundImage:
180+
selectedValue === option
181+
? "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5L2 6l1.5-1.5L4.5 6L8.5 2L10 3z'/%3E%3C/svg%3E\")"
182+
: 'none',
198183
backgroundRepeat: 'no-repeat',
199184
backgroundPosition: 'center',
200185
backgroundSize: '12px 12px',

0 commit comments

Comments
 (0)