fixed issue with the alignment in JWT section

This commit is contained in:
Gaurav
2024-12-05 17:29:12 +05:30
parent f4c62dd65c
commit d188efa9ee
2 changed files with 5 additions and 2 deletions
@@ -49,6 +49,7 @@ const Select = ({
onBlur,
sx,
name = "",
labelControlSpacing = 2,
}) => {
const theme = useTheme();
const itemStyles = {
@@ -57,10 +58,10 @@ const Select = ({
borderRadius: theme.shape.borderRadius,
margin: theme.spacing(2),
};
return (
<Stack
gap={theme.spacing(2)}
gap={theme.spacing(labelControlSpacing)}
className="select-wrapper"
>
{label && (
@@ -144,6 +145,7 @@ Select.propTypes = {
onChange: PropTypes.func.isRequired,
onBlur: PropTypes.func,
sx: PropTypes.object,
labelControlSpacing:PropTypes.number,
};
export default Select;
@@ -270,6 +270,7 @@ const AdvancedSettings = ({ isAdmin }) => {
onChange={handleJWTTTLUnits}
onBlur={handleBlur}
error={errors.jwtTTLUnits}
labelControlSpacing={0}
/>
</Stack>
<TextInput