Skip to content

Commit 8a65ccb

Browse files
2 parents 91d33fe + b30f57e commit 8a65ccb

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/components/Filter/Filter.jsx

+1-24
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,6 @@ const Filter = () => {
9090
const constraint =
9191
_selectedProductData.constraints.properties[constraintName]
9292
if (constraint.type === 'integer') {
93-
const marks = [
94-
{
95-
value: constraint.minimum,
96-
label: constraint.minimum
97-
},
98-
{
99-
value: constraint.maximum,
100-
label: constraint.minimum
101-
}
102-
]
103-
10493
filterContainer.push(
10594
<FormControl key={constraintName} sx={{ marginTop: 4 }}>
10695
<FormControlLabel
@@ -133,9 +122,6 @@ const Filter = () => {
133122
<Typography variant="body2">{constraint.maximum}</Typography>
134123

135124
</Box>
136-
<FormHelperText sx={{ color: '#FFF', paddingTop: 3.5 }}>
137-
{constraint.description}
138-
</FormHelperText>
139125
</FormControl>
140126
)
141127
continue
@@ -188,9 +174,6 @@ const Filter = () => {
188174
)
189175
}}
190176
/>
191-
<FormHelperText sx={{ color: '#FFF', paddingTop: 3.5 }}>
192-
{constraint.description}
193-
</FormHelperText>
194177
</FormControl>
195178
)
196179
continue
@@ -220,8 +203,6 @@ const Filter = () => {
220203
label={constraint.title}
221204
labelPlacement="top"
222205
/>
223-
224-
<FormHelperText>{constraint.description}</FormHelperText>
225206
</FormControl>
226207
)
227208
continue
@@ -253,8 +234,6 @@ const Filter = () => {
253234
label={constraint.title}
254235
labelPlacement="top"
255236
/>
256-
257-
<FormHelperText>{constraint.description}</FormHelperText>
258237
</FormControl>
259238
)
260239
continue
@@ -297,8 +276,6 @@ const Filter = () => {
297276
label={constraint.title}
298277
labelPlacement="top"
299278
/>
300-
301-
<FormHelperText>{constraint.description}</FormHelperText>
302279
</FormControl>
303280
)
304281
continue
@@ -323,7 +300,7 @@ const Filter = () => {
323300
/>
324301
</Divider>
325302
<div style={{ padding: '15px' }} data-testid="Search">
326-
<Stack gap={4}>{filterContainer}</Stack>
303+
<Stack gap={1}>{filterContainer}</Stack>
327304
</div>
328305
<div className="" style={{ marginTop: 24 }}>
329306
<button className={`actionButton searchButton`} type="submit">

0 commit comments

Comments
 (0)