mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed Jasmine test cases.
This commit is contained in:
committed by
Akshay Joshi
parent
2f37f0ca51
commit
7f2e87b27d
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user