mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
New Dashboard component.
This commit is contained in:
parent
33c921a32f
commit
20622116a8
10 changed files with 64 additions and 57 deletions
|
|
@ -2,7 +2,7 @@ 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';
|
||||
import useStore, { setDashboard, defaultDashboardConfig } from 'store/app';
|
||||
|
||||
const selector = state => state.dashboard;
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ export default function DashboardSettingsButton() {
|
|||
|
||||
function handleSelect(value) {
|
||||
if (value === 'charts') {
|
||||
setDashboard({ showCharts: !settings.showCharts });
|
||||
setDashboard({ ...defaultDashboardConfig, showCharts: !settings.showCharts });
|
||||
}
|
||||
//setDashboard(value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue