Compare commits
No commits in common. "d2fb0ca732359f690356ec7fe4a029eed42b912b" and "5a4e0c0137e0ab103ef2e5b4d5e88cb1168b6316" have entirely different histories.
d2fb0ca732
...
5a4e0c0137
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { SingleDatePicker } from "../src/index"
|
import { SingleDatePicker } from "../dist/index.es"
|
||||||
import './app.scss'
|
import './app.scss'
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
|
|
|
@ -80,7 +80,7 @@ export interface SingleDatePickerProps {
|
||||||
*
|
*
|
||||||
* @param {SingleDatePickerProps} props
|
* @param {SingleDatePickerProps} props
|
||||||
*/
|
*/
|
||||||
const SingleDatePicker: React.FC<SingleDatePickerProps> = ({ value, onSelect, localization, onClose, mainColor = '#000000', accentColor = '#000000', reversedColor = '#ffffff', hoverColor = '#00000017', borderColor = '#e0e0e0' }: SingleDatePickerProps) => {
|
const SingleDatePicker: React.FC = ({ value, onSelect, localization, onClose, mainColor = '#000000', accentColor = '#000000', reversedColor = '#ffffff', hoverColor = '#00000017', borderColor = '#e0e0e0' }: SingleDatePickerProps) => {
|
||||||
const [currentMonth, setCurrentMonth] = useState(new Date().getMonth())
|
const [currentMonth, setCurrentMonth] = useState(new Date().getMonth())
|
||||||
const [currentYear, setCurrentYear] = useState(new Date().getFullYear())
|
const [currentYear, setCurrentYear] = useState(new Date().getFullYear())
|
||||||
const [selectedDate, setSelectedDate] = useState(new Date())
|
const [selectedDate, setSelectedDate] = useState(new Date())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user