mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-10 08:04:36 -06:00
Few more UI changes for Note.
This commit is contained in:
parent
0998ddefa2
commit
1810d810d8
@ -92,7 +92,7 @@ function MappedFormControlBase({type, value, id, onChange, className, visible, i
|
||||
case 'sql':
|
||||
return <FormInputSQL name={name} value={value} onChange={onSqlChange} className={className} noLabel={noLabel} {...props} />;
|
||||
case 'note':
|
||||
return <FormNote {...props}/>;
|
||||
return <FormNote className={className} {...props}/>;
|
||||
default:
|
||||
return <span>{value}</span>;
|
||||
}
|
||||
|
@ -823,13 +823,15 @@ FormInputColor.propTypes = {
|
||||
testcid: PropTypes.string,
|
||||
};
|
||||
|
||||
export function FormNote({text}) {
|
||||
export function FormNote({text, className}) {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Box className={className}>
|
||||
<Paper elevation={0} className={classes.noteRoot}>
|
||||
<Box paddingRight="0.25rem"><DescriptionIcon fontSize="small" /></Box>
|
||||
<Box>{HTMLReactParse(text)}</Box>
|
||||
</Paper>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
FormNote.propTypes = {
|
||||
|
Loading…
Reference in New Issue
Block a user