fixed issue with the alignment in JWT section

This commit is contained in:
Gaurav committed 2024-12-05 17:29:12 +05:30
1 parent f4c62dd65c
commit d188efa9ee
2 files changed
+4 -1

No files matched your search

@@ -49,6 +49,7 @@ const Select = ({
onBlur, onBlur,
sx, sx,
name = "", name = "",
labelControlSpacing = 2,
}) => { }) => {
const theme = useTheme(); const theme = useTheme();
const itemStyles = { const itemStyles = {
@@ -60,7 +61,7 @@ const Select = ({
return ( return (
<Stack <Stack
gap={theme.spacing(2)} gap={theme.spacing(labelControlSpacing)}
className="select-wrapper" className="select-wrapper"
> >
{label && ( {label && (
@@ -144,6 +145,7 @@ Select.propTypes = {
onChange: PropTypes.func.isRequired, onChange: PropTypes.func.isRequired,
onBlur: PropTypes.func, onBlur: PropTypes.func,
sx: PropTypes.object, sx: PropTypes.object,
labelControlSpacing:PropTypes.number,
}; };
export default Select; export default Select;
@@ -270,6 +270,7 @@ const AdvancedSettings = ({ isAdmin }) => {
onChange={handleJWTTTLUnits} onChange={handleJWTTTLUnits}
onBlur={handleBlur} onBlur={handleBlur}
error={errors.jwtTTLUnits} error={errors.jwtTTLUnits}
labelControlSpacing={0}
/> />
</Stack> </Stack>
<TextInput <TextInput