parent
f2ff990cad
commit
05e09429ac
10 changed files with 136 additions and 134 deletions
@ -1,8 +0,0 @@ |
|||||||
import { render, screen } from '@testing-library/react'; |
|
||||||
import App from './App'; |
|
||||||
|
|
||||||
test('renders learn react link', () => { |
|
||||||
render(<App />); |
|
||||||
const linkElement = screen.getByText(/learn react/i); |
|
||||||
expect(linkElement).toBeInTheDocument(); |
|
||||||
}); |
|
@ -1,23 +1,22 @@ |
|||||||
import React, { useState } from "react"; |
import React, { useState } from "react"; |
||||||
import "./index.css"; |
import "./index.scss"; |
||||||
import DatePicker from "../Calendar/CalendarComponents"; |
import DatePicker from "../Calendar/CalendarComponents"; |
||||||
|
|
||||||
const RangeDatePicker = () => { |
const RangeDatePicker = () => { |
||||||
const [selectedDayRange, setSelectedDayRange] = useState({ |
const [selectedDayRange, setSelectedDayRange] = useState({ |
||||||
from: null, |
from: null, |
||||||
to: null |
to: null, |
||||||
}); |
}); |
||||||
return ( |
return ( |
||||||
<DatePicker |
<DatePicker |
||||||
value={selectedDayRange} |
value={selectedDayRange} |
||||||
calendarClassName="range-date-picker" |
calendarClassName="range-date-picker" |
||||||
onChange={setSelectedDayRange} |
onChange={setSelectedDayRange} |
||||||
inputPlaceholder="یک بازه زمانی انتخاب کنید" |
inputPlaceholder="یک بازه زمانی انتخاب کنید" |
||||||
shouldHighlightWeekends |
shouldHighlightWeekends |
||||||
locale='fa' |
locale="fa" |
||||||
|
/> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
/> |
export default RangeDatePicker; |
||||||
); |
|
||||||
}; |
|
||||||
|
|
||||||
export default RangeDatePicker; |
|
||||||
|
Before Width: | Height: | Size: 2.6 KiB |
Loading…
Reference in new issue