mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Sticky metrics header. CSS updates.
This commit is contained in:
parent
a65f637df2
commit
9c5762b8a2
16 changed files with 193 additions and 104 deletions
|
|
@ -13,10 +13,12 @@ const filterOptions = [
|
|||
{ label: 'This year', value: '1year' },
|
||||
];
|
||||
|
||||
export default function DateFilter({ value, onChange }) {
|
||||
export default function DateFilter({ value, onChange, className }) {
|
||||
function handleChange(value) {
|
||||
onChange(getDateRange(value));
|
||||
}
|
||||
|
||||
return <DropDown value={value} options={filterOptions} onChange={handleChange} />;
|
||||
return (
|
||||
<DropDown className={className} value={value} options={filterOptions} onChange={handleChange} />
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue