docs: add DatePicker and ImageInput stories (#980)

Closes #979
This commit is contained in:
Thaïs
2023-07-28 18:40:57 +02:00
committed by GitHub
parent 44a9c2687f
commit 2304823dc6
4 changed files with 78 additions and 7 deletions

View File

@ -7,7 +7,6 @@ import { overlayBackground } from '@/ui/themes/effects';
import 'react-datepicker/dist/react-datepicker.css';
export type DatePickerProps = {
isOpen?: boolean;
date: Date;
onChangeHandler: (date: Date) => void;
customInput?: ReactElement;
@ -129,11 +128,10 @@ const StyledContainer = styled.div`
&:hover {
background: ${({ theme }) => theme.background.transparent.light};
}
}
&:first-of-type {
display: none;
}
& .react-datepicker__year-option {
&:first-of-type,
&:last-of-type {
display: none;
}