diff --git a/frontend/src/components/inputs/BooleanInput/index.js b/frontend/src/components/inputs/BooleanInput/index.js index bbfb10fbc..046750ad5 100644 --- a/frontend/src/components/inputs/BooleanInput/index.js +++ b/frontend/src/components/inputs/BooleanInput/index.js @@ -43,9 +43,8 @@ const BooleanInput = ({ value, onChange, alignCenter = false }) => { return ( ({ + display: 'flex', + flexDirection: 'row', + justifyContent: 'flex-end', + alignItems: 'center', + backgroundColor: hasErrors + ? theme.palette.error.main + : theme.palette.primary.main, + padding: '1rem', + [theme.breakpoints.up('md')]: { + paddingLeft: `calc(${SIDEBAR_WIDTH} + 1rem)`, + }, + position: 'fixed', + transition: 'bottom 0.33s ease', + width: '100%', + bottom: dirty ? 0 : '-100px', + right: 0, + zIndex: 500, + color: 'white', +})) const BottomBar = ({ errors, @@ -36,35 +60,34 @@ const BottomBar = ({ }, []) const renderErrorsButton = () => ( - - + + {Object.keys(errors).length} errors - - + ) return ( <> - + {loading && ( - - - + + + {loadingText} - + @@ -81,7 +104,7 @@ const BottomBar = ({ )} {!loading && hasErrors && renderErrorsButton()} - + {dirty && } { {label && {label}} - + { onChange={handleMonthChange} /> - + { {!fieldsDisabled && ( <> - + { allowCreate /> - + { onChange={degree => handleChange('degree', degree)} /> - + { onChange={setRole} /> - + Years of experience - + { ))} - + { - + {value.map(({ role, years }, index) => [ , - + handleRemove(index)} + > + {t('Remove_')} + + } + > - - - , ])} diff --git a/frontend/src/components/inputs/PhoneNumberInput/index.js b/frontend/src/components/inputs/PhoneNumberInput/index.js index 0f1595472..a1ebfb0af 100644 --- a/frontend/src/components/inputs/PhoneNumberInput/index.js +++ b/frontend/src/components/inputs/PhoneNumberInput/index.js @@ -1,6 +1,6 @@ import React, { useCallback } from 'react' -import { Grid, InputAdornment, Box, Typography } from '@mui/material' +import { Grid2 as Grid, InputAdornment, Box, Typography } from '@mui/material' import Select from 'components/inputs/Select' import TextInput from 'components/inputs/TextInput' @@ -34,7 +34,12 @@ const PhoneNumberInput = React.memo( direction="row" alignItems="flex-end" > - + )} - + ) } @@ -378,7 +336,7 @@ IntegrationReactSelect.propTypes = { onChange: PropTypes.func.isRequired, options: PropTypes.oneOfType([PropTypes.array, PropTypes.string]) .isRequired, - // placeholder: PropTypes.string, + placeholder: PropTypes.string, value: PropTypes.any, allowCreate: PropTypes.bool, } diff --git a/frontend/src/components/inputs/SkillsInput/index.js b/frontend/src/components/inputs/SkillsInput/index.js index 44c0ac0fd..0c80d3727 100644 --- a/frontend/src/components/inputs/SkillsInput/index.js +++ b/frontend/src/components/inputs/SkillsInput/index.js @@ -1,16 +1,14 @@ import React, { useCallback, useState, useRef } from 'react' import { - Grid, + Grid2 as Grid, Typography, Button, - Box, FormControlLabel, RadioGroup, Radio, List, ListItem, ListItemText, - ListItemSecondaryAction, Divider, } from '@mui/material' import { Skills } from '@hackjunction/shared' @@ -59,7 +57,7 @@ export default React.memo(({ value = [], onChange, onBlur, autoFocus }) => { return ( - +