Skip to content

Commit

Permalink
feat: inserted the reset advanced search and show hidden offers butto…
Browse files Browse the repository at this point in the history
…ns inside of the advancedSearchContainer grid
  • Loading branch information
CarlosMealha committed Nov 15, 2022
1 parent 20b5ff7 commit ae6cec2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,24 @@ const AdvancedSearchDesktop = () => {
className: "chip-wrapper",
}}
/>
</Collapse>
{advancedOptions &&
<div className={classes.spaceBtwn}>
<div className={classes.resetBtnWrapper}>
<Button
{...ResetButtonProps}
_id="reset_btn"
color="primary"
onClick={resetAdvancedSearch}
>
Reset Advanced Fields
</Button>
{sessionData?.isAdmin &&
<Button
{...ResetButtonProps}
_id="reset_btn"
color="primary"
onClick={resetAdvancedSearch}
>
Reset Advanced Fields
</Button>
</div>
{sessionData?.isAdmin &&
<FormControlLabel
className={classes.jobDurationSliderToggle}
className={classes.jobHiddenSliderToggle}
control={<Switch {...JobDurationSwitchProps} />}
label={JobHiddenSwitchLabel}
/>
}
</div>
</div>
}
}
</Collapse>
</React.Fragment>
);
};
Expand Down
17 changes: 11 additions & 6 deletions src/components/HomePage/SearchArea/searchAreaStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default makeStyles((theme) => ({
advancedSearchContainer: {
display: "grid",
gridTemplateColumns: "1fr 1fr",
gridTemplateRows: "1fr 0.7fr auto",
gridTemplateRows: "1fr 0.7fr 1fr 0.7fr",
alignItems: "center",
gridGap: "1em",
},
Expand Down Expand Up @@ -82,15 +82,20 @@ export default makeStyles((theme) => ({
gridColumnStart: 2,
},
resetBtnWrapper: {
display: "flex",
gridRowStart: 4,
gridColumnStart: 1,
"& > *": {
marginTop: theme.spacing(2),
marginLeft: theme.spacing(-1),
},
},
spaceBtwn: {
"& > *": {
justifyContent: "space-between",
"& .chip-wrapper": {
gridColumnStart: 2,
gridRowStart: 4,
},
},
jobHiddenSliderToggle: {
gridRowStart: 4,
gridColumnStart: 2,

},
}));

0 comments on commit ae6cec2

Please sign in to comment.