diff --git a/frontend/app/components/Dashboard/components/WidgetForm/WidgetFormNew.tsx b/frontend/app/components/Dashboard/components/WidgetForm/WidgetFormNew.tsx index 039c2970a..a3cabf722 100644 --- a/frontend/app/components/Dashboard/components/WidgetForm/WidgetFormNew.tsx +++ b/frontend/app/components/Dashboard/components/WidgetForm/WidgetFormNew.tsx @@ -155,9 +155,7 @@ const FilterSection = observer( }} emptyMessage={ isTable - ? t( - 'Filter data using any event or attribute. Use Add Step button below to do so.', - ) + ? t('Filter data using any event or attribute. Use Add Step button below to do so.') : t('Add an event or filter step to define the series.') } expandable={isSingleSeries} @@ -165,10 +163,8 @@ const FilterSection = observer( ))} {isSingleSeries ? null : ( -
- +
+
)} @@ -216,43 +212,46 @@ const PathAnalysisFilter = observer(({ metric, writeOption }: any) => { }; return (
-
- -
- {t('Journeys With')} -
- {t('showing')} - + writeOption({ name: 'metricValue', value }) + } + placeholder={t('Select Metrics')} + maxTagCount={'responsive'} + showSearch={false} + /> +
- {metric.startType === 'start' ? 'Start Point' : 'End Point'} + {metric.startType === 'start' ? t('Start Point') : t('End Point')} { ); }); -function PredefinedMessage() { +const PredefinedMessage = () => { const { t } = useTranslation(); return ( ); -} +}; diff --git a/frontend/app/components/ui/Checkbox/Checkbox.tsx b/frontend/app/components/ui/Checkbox/Checkbox.tsx index 8984ce6c6..6e514355f 100644 --- a/frontend/app/components/ui/Checkbox/Checkbox.tsx +++ b/frontend/app/components/ui/Checkbox/Checkbox.tsx @@ -6,15 +6,8 @@ interface Props { label?: string; [x: string]: any; } -export default function (props: Props) { - const { className = '', label = '', ...rest } = props; - return {label}; -} + export default (props: Props) => { - const { className = '', label, ...rest } = props; - return ( - - {label} - - ); -}; + const { className = '', label, ...rest } = props; + return {label}; +}; \ No newline at end of file