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 "./index.css"; |
||||
import "./index.scss"; |
||||
import DatePicker from "../Calendar/CalendarComponents"; |
||||
|
||||
const RangeDatePicker = () => { |
||||
const [selectedDayRange, setSelectedDayRange] = useState({ |
||||
from: null, |
||||
to: null |
||||
}); |
||||
return ( |
||||
<DatePicker |
||||
value={selectedDayRange} |
||||
calendarClassName="range-date-picker" |
||||
onChange={setSelectedDayRange} |
||||
inputPlaceholder="یک بازه زمانی انتخاب کنید" |
||||
shouldHighlightWeekends |
||||
locale='fa' |
||||
const [selectedDayRange, setSelectedDayRange] = useState({ |
||||
from: null, |
||||
to: null, |
||||
}); |
||||
return ( |
||||
<DatePicker |
||||
value={selectedDayRange} |
||||
calendarClassName="range-date-picker" |
||||
onChange={setSelectedDayRange} |
||||
inputPlaceholder="یک بازه زمانی انتخاب کنید" |
||||
shouldHighlightWeekends |
||||
locale="fa" |
||||
/> |
||||
); |
||||
}; |
||||
|
||||
/> |
||||
); |
||||
}; |
||||
|
||||
export default RangeDatePicker; |
||||
export default RangeDatePicker; |
||||
|
Before Width: | Height: | Size: 2.6 KiB |
Loading…
Reference in new issue