mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Port View node to react. Fixes #6637
This commit is contained in:
committed by
Akshay Joshi
parent
6d18842dd3
commit
d9cfbf592e
@@ -155,12 +155,16 @@ InputSQL.propTypes = {
|
||||
|
||||
};
|
||||
|
||||
export function FormInputSQL({hasError, required, label, className, helpMessage, testcid, value, controlProps, ...props}) {
|
||||
return (
|
||||
<FormInput required={required} label={label} error={hasError} className={className} helpMessage={helpMessage} testcid={testcid} >
|
||||
<InputSQL value={value} options={controlProps} {...props}/>
|
||||
</FormInput>
|
||||
);
|
||||
export function FormInputSQL({hasError, required, label, className, helpMessage, testcid, value, controlProps, noLabel, ...props}) {
|
||||
if(noLabel) {
|
||||
return <InputSQL value={value} options={controlProps} {...props}/>;
|
||||
} else {
|
||||
return (
|
||||
<FormInput required={required} label={label} error={hasError} className={className} helpMessage={helpMessage} testcid={testcid} >
|
||||
<InputSQL value={value} options={controlProps} {...props}/>
|
||||
</FormInput>
|
||||
);
|
||||
}
|
||||
}
|
||||
FormInputSQL.propTypes = {
|
||||
hasError: PropTypes.bool,
|
||||
|
||||
Reference in New Issue
Block a user