fix(DB Connection): Update placeholder values for Snowflake connection (#25119)

This commit is contained in:
Vitor Avila 2023-08-30 09:16:31 -03:00 committed by GitHub
parent 00550d7c02
commit 46a0a6e08a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -24,9 +24,9 @@ import { FieldPropTypes } from '.';
const FIELD_TEXT_MAP = { const FIELD_TEXT_MAP = {
account: { account: {
helpText: t( helpText: t(
'Copy the account name of that database you are trying to connect to.', 'Copy the identifier of the account you are trying to connect to.',
), ),
placeholder: t('e.g. world_population'), placeholder: t('e.g. xy12345.us-east-2.aws'),
}, },
warehouse: { warehouse: {
placeholder: t('e.g. compute_wh'), placeholder: t('e.g. compute_wh'),

View File

@ -667,12 +667,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
const getPlaceholder = (field: string) => { const getPlaceholder = (field: string) => {
if (field === 'database') { if (field === 'database') {
switch (db?.engine) { return t('e.g. world_population');
case Engines.Snowflake:
return t('e.g. xy12345.us-east-2.aws');
default:
return t('e.g. world_population');
}
} }
return undefined; return undefined;
}; };