Fixed Jasmine test cases.

This commit is contained in:
Aditya Toshniwal
2022-03-24 12:05:59 +05:30
committed by Akshay Joshi
parent 2f37f0ca51
commit 7f2e87b27d
5 changed files with 19 additions and 13 deletions

View File

@@ -28,16 +28,13 @@ export default function SelectThemes({onChange, ...props}) {
props.options.forEach((opt)=> {
if(opt.value == e) {
setPreviewSrc(opt.preview_src);
}
}
});
onChange(e);
};
return (
<Grid
container
direction="column"
justifyContent="center">
<Grid container direction="column">
<Grid item lg={12} md={12} sm={12} xs={12}>
<InputSelect ref={props.inputRef} onChange={themeChange} {...props} />
</Grid>
@@ -55,4 +52,4 @@ SelectThemes.propTypes = {
fields: PropTypes.array,
options: PropTypes.array,
inputRef: CustomPropTypes.ref
};
};