From 0a51fefc555d275d0f9a0805c69149383d97581c Mon Sep 17 00:00:00 2001
From: Bonymol Baby <88372115+Bonymol-aot@users.noreply.github.com>
Date: Fri, 17 Nov 2023 03:25:40 -0800
Subject: [PATCH] Dashboard issues fixed (#1740)
* Dashboard fixes
* Update Dashboard.js
---
.../components/Dashboard/CardFormCounter.js | 2 +-
.../src/components/Dashboard/Dashboard.js | 7 +-
.../src/components/Insights/Insights.js | 153 +++++++++---------
3 files changed, 83 insertions(+), 79 deletions(-)
diff --git a/forms-flow-web/src/components/Dashboard/CardFormCounter.js b/forms-flow-web/src/components/Dashboard/CardFormCounter.js
index b1027ee68c..88404128af 100644
--- a/forms-flow-web/src/components/Dashboard/CardFormCounter.js
+++ b/forms-flow-web/src/components/Dashboard/CardFormCounter.js
@@ -32,7 +32,7 @@ const CardFormCounter = React.memo((props) => {
)}
>
- {formName}
+ {formName}
diff --git a/forms-flow-web/src/components/Dashboard/Dashboard.js b/forms-flow-web/src/components/Dashboard/Dashboard.js
index 689fbab0cf..aa52986eea 100644
--- a/forms-flow-web/src/components/Dashboard/Dashboard.js
+++ b/forms-flow-web/src/components/Dashboard/Dashboard.js
@@ -14,7 +14,7 @@ import Loading from "../../containers/Loading";
import LoadError from "../Error";
import DateRangePicker from "@wojtekmaj/react-daterange-picker";
import moment from "moment";
-import { Translation, useTranslation } from "react-i18next";
+import { useTranslation } from "react-i18next";
import {
setMetricsDateRangeLoading,
setMetricsSubmissionLimitChange,
@@ -257,11 +257,12 @@ const Dashboard = React.memo(() => {
-
+
onChangeInput(e.target.value)}
className="form-control"
+ style={{ padding: ".375rem .3rem" }}
title={t("Choose any")}
aria-label="Select date type"
>
@@ -269,7 +270,7 @@ const Dashboard = React.memo(() => {
-
{
return (
<>
-
-
-
-
-
-
-
-
-
- {" "}
- {(t) => t("Dashboard")}
-
-
-
- {options.length > 0 && (
-
-
-
-
- ({
- ...base,
- background: "rgba(255, 255, 255)",
- }),
- }}
- className="col-12"
- >
- {options.length > 0 ? (
- activeDashboard.public_url ? (
-
- ) : !isDashboardDetailUpdated ? (
-
+
+
+
+
+
+
+
+ {" "}
+ {(t) => t("Dashboard")}
+
+
+
+ {options.length > 0 && (
+
+
+
+ {options.length > 0 ? (
+ ({
+ ...base,
+ background: "rgba(255, 255, 255)",
+ }),
+ }}
+ className="col-12"
+ >
+
+ {activeDashboard.public_url ? (
+
+ ) : !isDashboardDetailUpdated ? (
+
-
-
- ) : (
-
- )
- ) : (
-
- )}
-
-
-
-
+ }}>
+
+
+ ) : (
+
+ )
+ }
+
+ )
+ : (
+
+ )}
+
+
+
+