diff --git a/frontend/app/components/Dashboard/components/DashboardForm/DashboardForm.tsx b/frontend/app/components/Dashboard/components/DashboardForm/DashboardForm.tsx
new file mode 100644
index 000000000..9765424eb
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/DashboardForm/DashboardForm.tsx
@@ -0,0 +1,59 @@
+import { useObserver } from 'mobx-react-lite';
+import React from 'react';
+import { Input } from 'UI';
+import { useDashboardStore } from '../../store/store';
+import cn from 'classnames';
+
+interface Props {
+}
+
+function DashboardForm(props) {
+ const store: any = useDashboardStore();
+ const dashboard = store.newDashboard;
+
+ const write = ({ target: { value, name } }) => dashboard.update({ [ name ]: value })
+ const writeRadio = ({ target: { value, name } }) => {
+ dashboard.update({ [name]: value === 'team' });
+ }
+
+ return useObserver(() => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ));
+}
+
+export default DashboardForm;
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/DashboardForm/index.ts b/frontend/app/components/Dashboard/components/DashboardForm/index.ts
new file mode 100644
index 000000000..01c5b0072
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/DashboardForm/index.ts
@@ -0,0 +1 @@
+export { default } from './DashboardForm';
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx
index ef4a9886e..08984e96e 100644
--- a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx
+++ b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx
@@ -103,7 +103,7 @@ function DashboardMetricSelection(props) {
-
+
{activeCategory.widgets.map((widget: any) => (
-
-
-
-
));
}
diff --git a/frontend/app/components/Dashboard/components/DashboardModal/DashboardModal.tsx b/frontend/app/components/Dashboard/components/DashboardModal/DashboardModal.tsx
index 1cb87307a..18e191e5e 100644
--- a/frontend/app/components/Dashboard/components/DashboardModal/DashboardModal.tsx
+++ b/frontend/app/components/Dashboard/components/DashboardModal/DashboardModal.tsx
@@ -1,25 +1,31 @@
import React from 'react';
-import WidgetWrapper from '../../WidgetWrapper';
import { useDashboardStore } from '../../store/store';
-import { observer, useObserver } from 'mobx-react-lite';
-import cn from 'classnames';
-import { Button } from 'UI';
+import { useObserver } from 'mobx-react-lite';
import DashboardMetricSelection from '../DashboardMetricSelection';
-
+import DashboardForm from '../DashboardForm';
+import { Button } from 'UI';
function DashboardModal(props) {
const store: any = useDashboardStore();
-
+ const dashbaord = useObserver(() => store.newDashboard);
return useObserver(() => (
-
Add Metric to Dashboard
+
Create Dashboard
+
+
Create new dashboard by choosing from the range of predefined metrics that you care about. You can always add your custom metrics later.
+
+
+
+
));
}
-export default observer(DashboardModal);
\ No newline at end of file
+export default DashboardModal;
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx
index 09e6b5d3c..7b32fda56 100644
--- a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx
+++ b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx
@@ -13,8 +13,7 @@ function DashboardView(props) {
const dashboard = store.selectedDashboard
const list = dashboard?.widgets;
useEffect(() => {
- // handleModal()
- props.showModal(DashboardModal)
+ // props.showModal(DashboardModal)
}, [])
return (