Skip to content

Commit

Permalink
fix(DB Connection): Update placeholder values for Snowflake connection (
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor-Avila authored Aug 30, 2023
1 parent 00550d7 commit 46a0a6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import { FieldPropTypes } from '.';
const FIELD_TEXT_MAP = {
account: {
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: {
placeholder: t('e.g. compute_wh'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -667,12 +667,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({

const getPlaceholder = (field: string) => {
if (field === 'database') {
switch (db?.engine) {
case Engines.Snowflake:
return t('e.g. xy12345.us-east-2.aws');
default:
return t('e.g. world_population');
}
return t('e.g. world_population');
}
return undefined;
};
Expand Down

0 comments on commit 46a0a6e

Please sign in to comment.