mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import {
|
||||
DateRange as ReactDateRange,
|
||||
type DateRangeProps,
|
||||
type Range,
|
||||
} from 'react-date-range';
|
||||
import { useTheme } from '../theme';
|
||||
|
||||
export { DateRangeProps, Range };
|
||||
|
||||
export const DateRange = (props: DateRangeProps) => {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<ReactDateRange
|
||||
color={theme.affine.palette.primary}
|
||||
rangeColors={[theme.affine.palette.primary]}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user