-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: signup works initially, perhaps additional exception handlings …
…are required
- Loading branch information
Showing
15 changed files
with
386 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { styled } from 'styled-components' | ||
import DatePicker from 'react-datepicker' | ||
import 'react-datepicker/dist/react-datepicker.css' | ||
import { TitleText } from 'components/index' | ||
import { signupTexts } from 'constants/index' | ||
import { ko } from 'date-fns/esm/locale' | ||
|
||
export const DatePickerForm = ({ date, setDate }) => { | ||
//코드 더러움 수정 필요 | ||
return ( | ||
<> | ||
<DatePickerWrapper> | ||
<TitleText>{signupTexts.hireDate}</TitleText> | ||
<label> | ||
<i> | ||
<img src="/src/assets/calendarIcon.png" /> | ||
</i> | ||
<DatePicker | ||
locale={ko} | ||
selected={date} | ||
onChange={date => { | ||
setDate(date) | ||
}} | ||
dateFormat="yyyy-MM-dd"></DatePicker> | ||
</label> | ||
</DatePickerWrapper> | ||
</> | ||
) | ||
} | ||
|
||
const DatePickerWrapper = styled.div` | ||
position: relative; | ||
img { | ||
width: 25px; | ||
height: 24px; | ||
position: absolute; | ||
z-index: 1; | ||
top: 53px; | ||
right: 40px; | ||
cursor: pointer; | ||
} | ||
input { | ||
background: #ffffff; | ||
border: 1px solid #d9d9d9; | ||
border-radius: 10px; | ||
padding-left: 10px; | ||
width: 434px; | ||
height: 60px; | ||
margin-bottom: 6px; | ||
&::placeholder { | ||
font-size: 12px; | ||
opacity: 0.75; | ||
} | ||
&:focus { | ||
outline: 1px solid ${props => props.theme.colors.primaryBlue}; | ||
} | ||
} | ||
` |
Oops, something went wrong.