-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit d0659e0 Merge: 3c9fe3e 12758be Author: Jeon Jinho <[email protected]> Date: Tue Jan 23 17:28:08 2024 +0900 Merge pull request #144 from team-offonoff/fix/login-flow chore: add pr template commit 12758be Merge: 415f022 3c9fe3e Author: Jeon Jinho <[email protected]> Date: Tue Jan 23 17:26:00 2024 +0900 Merge branch 'dev' into fix/login-flow commit 3c9fe3e Merge: efac491 b4fd241 Author: Jeon Jinho <[email protected]> Date: Tue Jan 23 16:45:28 2024 +0900 Merge pull request #143 from team-offonoff/Jinho1011-patch-1 chore: add pr template commit b4fd241 Author: Jeon Jinho <[email protected]> Date: Tue Jan 23 16:05:13 2024 +0900 Create pull_request_template.md commit 415f022 Author: 전진호 <[email protected]> Date: Tue Jan 23 15:49:28 2024 +0900 feat: add term mutation api commit df7633d Author: 전진호 <[email protected]> Date: Tue Jan 23 15:02:58 2024 +0900 feat: implements Terms component commit be6d63b Author: 전진호 <[email protected]> Date: Tue Jan 23 15:02:47 2024 +0900 feat: toggle 약관동의 bottomsheet on submit commit 3816501 Author: 전진호 <[email protected]> Date: Tue Jan 23 15:02:22 2024 +0900 feat: add transparent props commit 2bb7340 Author: 전진호 <[email protected]> Date: Tue Jan 23 15:02:12 2024 +0900 feat: add checkbox component commit e0610a8 Author: 전진호 <[email protected]> Date: Tue Jan 23 15:01:59 2024 +0900 fix: add transparent props to bottomsheet commit e99a4bf Author: 전진호 <[email protected]> Date: Tue Jan 23 15:01:46 2024 +0900 feat: add check icon commit b292c88 Author: 전진호 <[email protected]> Date: Mon Jan 22 22:48:06 2024 +0900 fix: genders value commit 36779a0 Author: 전진호 <[email protected]> Date: Mon Jan 22 22:47:56 2024 +0900 fix: file name error commit 75ae65f Author: 전진호 <[email protected]> Date: Mon Jan 22 20:52:04 2024 +0900 fix: remove funnel from signup commit a5ca53e Author: 전진호 <[email protected]> Date: Mon Jan 22 20:42:22 2024 +0900 feat: setUser when user is not newMember commit e7e2379 Author: 전진호 <[email protected]> Date: Mon Jan 22 20:42:00 2024 +0900 feat: add useAuthStore's user commit 5e1637b Author: 전진호 <[email protected]> Date: Mon Jan 22 20:41:27 2024 +0900 fix: make nickname optional commit f2c1b11 Author: 전진호 <[email protected]> Date: Mon Jan 22 20:41:08 2024 +0900 chore: add serve script commit ec39b94 Author: 전진호 <[email protected]> Date: Mon Jan 22 20:08:30 2024 +0900 feat: add user store commit 7392567 Author: 전진호 <[email protected]> Date: Mon Jan 22 18:17:14 2024 +0900 chore: add zustand commit f95bd5f Author: 전진호 <[email protected]> Date: Mon Jan 22 17:44:43 2024 +0900 fix: navigate to signup when new member signed up
- Loading branch information
Showing
20 changed files
with
414 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## What is this PR? 🔍 | ||
- 무슨 목적/이유로 구현했는지 | ||
|
||
### 🛠️ Issue | ||
- Closes #number | ||
|
||
## Changes 📝 | ||
- 작업한 내용 적어주세요 | ||
|
||
## To Reviewers 📢 | ||
- 이 부분 좀 같이 봐주세요 / 혹은 하고 싶은 말 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { CheckIcon } from '@icons/index'; | ||
|
||
import { Row } from '../Flex/Flex'; | ||
import Text from '../Text/Text'; | ||
|
||
interface CheckboxProps { | ||
id: string; | ||
checked: boolean; | ||
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
children: React.ReactNode; | ||
} | ||
|
||
function Checkbox({ id, checked, onChange, children }: CheckboxProps) { | ||
return ( | ||
<Row alignItems="center" gap={16}> | ||
<CheckBoxLabel checked={checked} htmlFor={id}> | ||
<HiddenCheckbox id={id} type="checkbox" onChange={onChange} checked={checked} /> | ||
{checked && <CheckIcon width="14px" height="14px" />} | ||
</CheckBoxLabel> | ||
<label htmlFor={id} style={{ userSelect: 'none' }}> | ||
{children} | ||
</label> | ||
</Row> | ||
); | ||
} | ||
|
||
export default Checkbox; | ||
|
||
const CheckBoxLabel = styled.label<{ checked: boolean }>` | ||
position: relative; | ||
display: inline-block; | ||
width: 22px; | ||
height: 22px; | ||
cursor: pointer; | ||
background: ${({ checked, theme }) => | ||
checked ? `${theme.colors.purple}` : 'rgb(77 59 124 / 20%)'}; | ||
border-radius: 3px; | ||
& > svg { | ||
position: absolute; | ||
top: 3px; | ||
left: 3.5px; | ||
} | ||
`; | ||
|
||
const HiddenCheckbox = styled.input` | ||
position: absolute; | ||
width: 1px; | ||
height: 1px; | ||
padding: 0; | ||
margin: 0; | ||
overflow: hidden; | ||
clip: rect(0 0 0 0); | ||
white-space: nowrap; | ||
border: 0; | ||
`; |
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
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,6 @@ | ||
export interface User { | ||
memberId: number; | ||
nickname?: string; | ||
accessToken?: string; | ||
refrehToken?: string; | ||
} |
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
File renamed without changes.
Oops, something went wrong.