-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/#66/NarrowDropDown
- Loading branch information
Showing
40 changed files
with
936 additions
and
75 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ node_modules | |
dist | ||
dist-ssr | ||
*.local | ||
.env | ||
|
||
# Editor directories and files | ||
.vscode | ||
|
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import axios from "axios"; | ||
|
||
export const getData = async (token: string) => { | ||
try { | ||
const res = await axios.get("https://kapi.kakao.com/v2/user/me", { | ||
headers: { | ||
Authorization: `Bearer ${token}`, | ||
}, | ||
}); | ||
return await res.data; | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
}; |
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,25 @@ | ||
import axios from "axios"; | ||
|
||
export const getToken = async (code: string) => { | ||
const grant_type = "authorization_code"; | ||
const REST_API = import.meta.env.VITE_REST_API; | ||
const REDIRECT_URI = "http://localhost:5173/auth"; | ||
const AUTHORIZE_CODE = code; | ||
|
||
try { | ||
const res = await axios.post( | ||
`https://kauth.kakao.com/oauth/token?grant_type=${grant_type}&client_id=${REST_API}&redirect_uri=${REDIRECT_URI}&code=${AUTHORIZE_CODE}`, | ||
{ | ||
headers: { | ||
"Content-type": "application/x-www-form-urlencoded;charset=utf-8", | ||
}, | ||
} | ||
); | ||
|
||
const token = res.data.access_token; | ||
|
||
return token; | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
}; |
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,52 @@ | ||
import * as React from "react"; | ||
import type { SVGProps } from "react"; | ||
const SvgEmpty = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 150 150" {...props}> | ||
<rect | ||
width={14.319} | ||
height={17.183} | ||
fill="#3E3E3E" | ||
rx={4} | ||
transform="scale(-1 1)rotate(-25.907 -19.855 294.567)" | ||
/> | ||
<rect | ||
width={8.592} | ||
height={2.864} | ||
fill="#3E3E3E" | ||
rx={1.432} | ||
transform="scale(-1 1)rotate(-25.907 -27.514 289.78)" | ||
/> | ||
<rect | ||
width={14.319} | ||
height={17.183} | ||
x={20.252} | ||
y={20.929} | ||
fill="#3E3E3E" | ||
rx={4} | ||
transform="rotate(-25.907 20.252 20.93)" | ||
/> | ||
<rect | ||
width={8.592} | ||
height={2.864} | ||
x={21.574} | ||
y={17.102} | ||
fill="#3E3E3E" | ||
rx={1.432} | ||
transform="rotate(-25.907 21.574 17.102)" | ||
/> | ||
<path | ||
fill="#fff" | ||
fillOpacity={0.2} | ||
d="M48.323 124.032 116.5 32.499l-14.057 91.534z" | ||
opacity={0.1} | ||
/> | ||
<path | ||
fill="#fff" | ||
fillOpacity={0.2} | ||
d="M102.626 124.032 34.449 32.5l14.057 91.533z" | ||
opacity={0.1} | ||
/> | ||
<ellipse cx={75.5} cy={124} fill="#3E3E3E" rx={27.5} ry={3} /> | ||
</svg> | ||
); | ||
export default SvgEmpty; |
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,20 @@ | ||
import * as React from "react"; | ||
import type { SVGProps } from "react"; | ||
const SvgIconEyeOn = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" {...props}> | ||
<g clipPath="url(#icon_eye_on_svg__a)"> | ||
<path | ||
fill="#F4F4F4" | ||
fillRule="evenodd" | ||
d="M4.8 12.299v.002a1 1 0 0 0 .086.25q.158.337.381.636c.358.498.894 1.073 1.57 1.619C8.2 15.904 10.03 16.8 12 16.8s3.802-.896 5.162-1.995c.677-.546 1.213-1.12 1.57-1.618q.222-.301.383-.638c.067-.149.081-.228.085-.247v-.005a1 1 0 0 0-.085-.247 3.8 3.8 0 0 0-.382-.637c-.358-.498-.894-1.073-1.57-1.619C15.8 8.696 13.968 7.8 12 7.8s-3.8.896-5.162 1.996c-.677.546-1.213 1.12-1.57 1.618-.18.25-.305.466-.382.638-.068.149-.082.228-.086.247m.908-3.906C7.277 7.13 9.495 6 12 6s4.723 1.129 6.292 2.393c.79.636 1.44 1.327 1.902 1.968q.328.447.563.95c.132.295.243.64.243.989 0 .35-.11.694-.244.99-.139.307-.331.628-.562.949-.462.641-1.113 1.332-1.902 1.968C16.723 17.47 14.505 18.6 12 18.6s-4.723-1.129-6.292-2.393c-.79-.636-1.44-1.327-1.902-1.968a5.6 5.6 0 0 1-.563-.95C3.111 12.994 3 12.65 3 12.3c0-.35.11-.693.244-.99q.232-.502.562-.949c.462-.641 1.113-1.333 1.902-1.968m4.383 1.998a2.7 2.7 0 1 1 3.818 3.818 2.7 2.7 0 0 1-3.818-3.818" | ||
clipRule="evenodd" | ||
/> | ||
</g> | ||
<defs> | ||
<clipPath id="icon_eye_on_svg__a"> | ||
<path fill="#fff" d="M0 0h24v24H0z" /> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
); | ||
export default SvgIconEyeOn; |
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
27 changes: 19 additions & 8 deletions
27
src/components/commons/bottomSheet/actionsBottomSheet/phoneNumber/PhoneNumber.tsx
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
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,16 @@ | ||
import { modalAtom } from "@stores/modal"; | ||
import { useAtomValue } from "jotai"; | ||
import ModalWrapper from "./components/ModalWrapper"; | ||
|
||
const Modal = () => { | ||
const modal = useAtomValue(modalAtom); | ||
const { isOpen, children } = modal; | ||
|
||
if (isOpen) { | ||
return <ModalWrapper>{children}</ModalWrapper>; | ||
} | ||
|
||
return <></>; | ||
}; | ||
|
||
export default Modal; |
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
Oops, something went wrong.