mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed bugs found while testing makeStyles JSS changes. #7363
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
import React from 'react';
|
||||
import { styled } from '@mui/material/styles';
|
||||
import pgAdmin from 'sources/pgadmin';
|
||||
import { getNodeAjaxOptions, getNodeListById } from 'pgbrowser/node_ajax';
|
||||
import {CloudInstanceDetailsSchema, CloudDBCredSchema, DatabaseSchema} from './aws_schema.ui';
|
||||
@@ -19,13 +18,6 @@ import { isEmptyString } from 'sources/validators';
|
||||
import PropTypes from 'prop-types';
|
||||
import gettext from 'sources/gettext';
|
||||
|
||||
const StyledSchemaView= styled(SchemaView)(() =>
|
||||
({
|
||||
'& .aws-formClass': {
|
||||
overflow: 'auto',
|
||||
}
|
||||
}));
|
||||
|
||||
// AWS credentials
|
||||
export function AwsCredentials(props) {
|
||||
const [cloudDBCredInstance, setCloudDBCredInstance] = React.useState();
|
||||
@@ -113,7 +105,7 @@ export function AwsInstanceDetails(props) {
|
||||
}, [props.cloudProvider]);
|
||||
|
||||
|
||||
return <StyledSchemaView
|
||||
return <SchemaView
|
||||
formType={'dialog'}
|
||||
getInitData={() => { /*This is intentional (SonarQube)*/ }}
|
||||
viewHelperProps={{ mode: 'create' }}
|
||||
@@ -123,7 +115,6 @@ export function AwsInstanceDetails(props) {
|
||||
onDataChange={(isChanged, changedData) => {
|
||||
props.setCloudInstanceDetails(changedData);
|
||||
}}
|
||||
formClassName='aws-formClass'
|
||||
/>;
|
||||
}
|
||||
AwsInstanceDetails.propTypes = {
|
||||
|
Reference in New Issue
Block a user