mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 23:36:48 -06:00
Add the plain string component forgot last time.
This commit is contained in:
parent
314fcabbeb
commit
1ce6c2aee1
@ -900,6 +900,18 @@ FormInputColor.propTypes = {
|
||||
testcid: PropTypes.string,
|
||||
};
|
||||
|
||||
export function PlainString({controlProps, value}) {
|
||||
let finalValue = value;
|
||||
if(controlProps?.formatter) {
|
||||
finalValue = controlProps.formatter.fromRaw(finalValue);
|
||||
}
|
||||
return <span>{finalValue}</span>;
|
||||
}
|
||||
PlainString.propTypes = {
|
||||
controlProps: PropTypes.object,
|
||||
value: PropTypes.any,
|
||||
};
|
||||
|
||||
export function FormNote({text, className}) {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user