mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Move date range selection into redux.
This commit is contained in:
parent
d06c077019
commit
c5cb19a3bf
21 changed files with 141 additions and 138 deletions
|
|
@ -8,7 +8,7 @@ import styles from './WebsiteHeader.module.css';
|
|||
import RefreshButton from '../common/RefreshButton';
|
||||
import ButtonLayout from '../layout/ButtonLayout';
|
||||
|
||||
export default function WebsiteHeader({ websiteId, title, showLink = false, onRefresh }) {
|
||||
export default function WebsiteHeader({ websiteId, title, showLink = false }) {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
|
|
@ -16,7 +16,7 @@ export default function WebsiteHeader({ websiteId, title, showLink = false, onRe
|
|||
<div className={styles.title}>{title}</div>
|
||||
<ActiveUsers className={styles.active} websiteId={websiteId} />
|
||||
<ButtonLayout>
|
||||
<RefreshButton onClick={onRefresh} />
|
||||
<RefreshButton websiteId={websiteId} />
|
||||
{showLink && (
|
||||
<Button
|
||||
icon={<Arrow />}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue