Sticky metrics header. CSS updates.

This commit is contained in:
Mike Cao 2020-08-01 21:20:52 -07:00
parent a65f637df2
commit 9c5762b8a2
16 changed files with 193 additions and 104 deletions

View file

@ -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} />
);
}