diff --git a/src/components/DataManage/CreditLogSearchBar.js b/src/components/DataManage/CreditLogSearchBar.js deleted file mode 100644 index b8bb6b0..0000000 --- a/src/components/DataManage/CreditLogSearchBar.js +++ /dev/null @@ -1,198 +0,0 @@ -import { styled } from 'styled-components'; -import { useState } from 'react'; - -import Button from '../../components/common/button/Button'; - -import DatePicker, { registerLocale } from 'react-datepicker'; -import 'react-datepicker/dist/react-datepicker.css'; -import { getMonth, getYear } from 'date-fns'; -import range from 'lodash/range'; - -import { TextInput, SelectInput, DatePickerWrapper, InputLabel, BtnWrapper } from '../../styles/Components'; - -const GoodsLogSearchBar = () => { - const [startDate, setStartDate] = useState(new Date()); - const [endDate, setEndDate] = useState(new Date()); - const [selectData, setSelectData] = useState('default'); - const years = range(1990, getYear(new Date()) + 1, 1); - const months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']; - - const handleChange = e => { - setSelectData(e.target.value); - }; - - return ( - <> - - - - 조회 기간 - - - setStartDate(date)} - className="datepicker" - placeholderText="검색기간 선택" - calendarClassName="calendar" - dateFormat="yyyy - MM - dd" - locale="ko" - renderCustomHeader={({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled }) => ( -
- - - . - - -
- )} - /> - - - - - - - - -
- ~ - - setEndDate(date)} - className="datepicker" - placeholderText="검색기간 선택" - calendarClassName="calendar" - dateFormat="yyyy - MM - dd" - minDate = {startDate} - locale="ko" - renderCustomHeader={({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled }) => ( -
- - - . - - -
- )} - /> - - - - - - - - -
-
-
-
- - - 조회 대상 - - - - - - . - - - - )} - /> - - - - - - - - - - ~ - - setEndDate(date)} - className="datepicker" - placeholderText="검색기간 선택" - calendarClassName="calendar" - dateFormat="yyyy - MM - dd" - minDate = {startDate} - locale="ko" - renderCustomHeader={({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled }) => ( -
- - - . - - -
- )} - /> - - - - - - - - -
- - -
- - {selectData === 'default' ? ( - - 조회 대상 - - - ) : ( - - 아이템 ID - - - )} - - - - - . - - - - )} - /> - - - - - - - - - - ~ - - setEndDate(date)} - className="datepicker" - placeholderText="검색기간 선택" - calendarClassName="calendar" - dateFormat="yyyy - MM - dd" - minDate = {startDate} - locale="ko" - renderCustomHeader={({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled }) => ( -
- - - . - - -
- )} - /> - - - - - - - - -
- - -
- - - 조회 대상 - - - -