diff --git a/src/ConnectionConfig.tsx b/src/ConnectionConfig.tsx index b11cbe5..5381157 100644 --- a/src/ConnectionConfig.tsx +++ b/src/ConnectionConfig.tsx @@ -28,12 +28,17 @@ export interface ConnectionConfigProps< skipEndpoint?: boolean; children?: React.ReactNode; labelWidth?: number; + inExperimentalAuthComponent?: boolean; } export const ConnectionConfig: FC = (props: ConnectionConfigProps) => { const [regions, setRegions] = useState((props.standardRegions || standardRegions).map(toOption)); const { loadRegions, onOptionsChange, skipHeader = false, skipEndpoint = false } = props; - const { labelWidth = DEFAULT_LABEL_WIDTH, options } = props; + const { + labelWidth = DEFAULT_LABEL_WIDTH, + options, + inExperimentalAuthComponent + } = props; let profile = options.jsonData.profile; if (profile === undefined) { profile = options.database; @@ -71,6 +76,8 @@ export const ConnectionConfig: FC = (props: ConnectionCon loadRegions().then((regions) => setRegions(regions.map(toOption))); }, [loadRegions]); + const inputWidth = inExperimentalAuthComponent ? "width-20" : "width-30"; + return (
= (props: ConnectionCon > = (props: ConnectionCon <> {props.options.secureJsonFields?.accessKey ? ( - + = (props: ConnectionCon ) : ( @@ -131,7 +138,7 @@ export const ConnectionConfig: FC = (props: ConnectionCon {props.options.secureJsonFields?.secretKey ? ( - + = (props: ConnectionCon ) : ( @@ -161,7 +168,7 @@ export const ConnectionConfig: FC = (props: ConnectionCon > = (props: ConnectionCon > = (props: ConnectionCon > = (props: ConnectionCon >