Skip to content

Commit

Permalink
chore(MCDALayerParameterRow): rename tipText to infoText
Browse files Browse the repository at this point in the history
  • Loading branch information
albaranau committed May 31, 2024
1 parent 7a29b64 commit d813500
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import s from './MCDALayerParameterRow.module.css';

export type MCDALayerParameterRowProps = {
name: string;
tipText: string;
infoText: string;
children?: JSX.Element | JSX.Element[];
};

export function MCDALayerParameterRow({
name,
tipText,
infoText,
children,
}: MCDALayerParameterRowProps) {
return (
Expand All @@ -19,7 +19,7 @@ export function MCDALayerParameterRow({
{name}
<TooltipTrigger
className={s.infoButton}
tipText={tipText}
tipText={infoText}
tooltipId={LAYERS_PANEL_FEATURE_ID}
/>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function MCDALayerParameters({ layer, onLayerEdited }: MCDALayerLegendPro
{/* RANGE */}
<MCDALayerParameterRow
name={i18n.t('mcda.layer_editor.range')}
tipText={i18n.t('mcda.layer_editor.tips.range')}
infoText={i18n.t('mcda.layer_editor.tips.range')}
>
<div className={s.rangeInputContainer}>
<Input
Expand Down Expand Up @@ -300,7 +300,7 @@ export function MCDALayerParameters({ layer, onLayerEdited }: MCDALayerLegendPro
{/* OUTLIERS */}
<MCDALayerParameterRow
name={i18n.t('mcda.layer_editor.outliers')}
tipText={i18n.t('mcda.layer_editor.tips.outliers')}
infoText={i18n.t('mcda.layer_editor.tips.outliers')}
>
<Select
className={s.selectInput}
Expand All @@ -317,7 +317,7 @@ export function MCDALayerParameters({ layer, onLayerEdited }: MCDALayerLegendPro
{/* SENTIMENT */}
<MCDALayerParameterRow
name={i18n.t('mcda.layer_editor.sentiment')}
tipText={i18n.t('mcda.layer_editor.tips.sentiment')}
infoText={i18n.t('mcda.layer_editor.tips.sentiment')}
>
<Select
className={s.selectInput}
Expand All @@ -334,7 +334,7 @@ export function MCDALayerParameters({ layer, onLayerEdited }: MCDALayerLegendPro
{/* WEIGHT */}
<MCDALayerParameterRow
name={i18n.t('mcda.layer_editor.weight')}
tipText={i18n.t('mcda.layer_editor.tips.weight')}
infoText={i18n.t('mcda.layer_editor.tips.weight')}
>
<Input
classes={{
Expand All @@ -359,7 +359,7 @@ export function MCDALayerParameters({ layer, onLayerEdited }: MCDALayerLegendPro
{/* TRANSFORM */}
<MCDALayerParameterRow
name={i18n.t('mcda.layer_editor.transform')}
tipText={i18n.t('mcda.layer_editor.tips.transform')}
infoText={i18n.t('mcda.layer_editor.tips.transform')}
>
<Select
className={s.selectInput}
Expand All @@ -376,7 +376,7 @@ export function MCDALayerParameters({ layer, onLayerEdited }: MCDALayerLegendPro
{/* NORMALIZE */}
<MCDALayerParameterRow
name={i18n.t('mcda.layer_editor.normalize')}
tipText={i18n.t('mcda.layer_editor.tips.normalize')}
infoText={i18n.t('mcda.layer_editor.tips.normalize')}
>
<Select
className={s.selectInput}
Expand Down

0 comments on commit d813500

Please sign in to comment.