- }
- icon={}
- onClick={() => setShowCharts(!showCharts)}
- />
+
- {data.map(({ website_id, name, domain }) => (
-
-
-
- ))}
+ {data.map(({ website_id, name, domain }, index) =>
+ index < max ? (
+
+
+
+ ) : null,
+ )}
+ {max < data.length && (
+
+ )}
);
}
diff --git a/components/pages/WebsiteList.module.css b/components/pages/WebsiteList.module.css
index 4c2952d6..d9899574 100644
--- a/components/pages/WebsiteList.module.css
+++ b/components/pages/WebsiteList.module.css
@@ -16,3 +16,8 @@
justify-content: flex-end;
padding-top: 10px;
}
+
+.button {
+ align-self: center;
+ margin-bottom: 40px;
+}
diff --git a/components/settings/DashboardSettingsButton.js b/components/settings/DashboardSettingsButton.js
new file mode 100644
index 00000000..41dc3bf2
--- /dev/null
+++ b/components/settings/DashboardSettingsButton.js
@@ -0,0 +1,27 @@
+import React from 'react';
+import { FormattedMessage } from 'react-intl';
+import MenuButton from 'components/common/MenuButton';
+import Gear from 'assets/gear.svg';
+import useStore, { setDashboard } from 'store/app';
+
+const selector = state => state.dashboard;
+
+export default function DashboardSettingsButton() {
+ const settings = useStore(selector);
+
+ const menuOptions = [
+ {
+ label: