-
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.
Merge pull request #148 from Learn-and-Give/develop
Release/1.6.0
- Loading branch information
Showing
59 changed files
with
2,619 additions
and
1,230 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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import api from "../my-api"; | ||
import axios from "axios"; | ||
import { LoginProps } from "./types"; | ||
|
||
const postLogin = async (loginBody: LoginProps) => { | ||
return await api.post("/user/login", loginBody); | ||
return await axios.post( | ||
"https://prod.kkamjidot.com/v2/user/login", | ||
loginBody | ||
); | ||
}; | ||
|
||
export { postLogin }; |
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,6 @@ | ||
export const getToken = () => { | ||
if (typeof window === "undefined") { | ||
return ""; | ||
} | ||
return sessionStorage.getItem("token") || localStorage.getItem("token") || ""; | ||
}; |
File renamed without changes.
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 was deleted.
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
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
File renamed without changes.
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,57 @@ | ||
import { Icon } from "@iconify/react"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import { media } from "../../../styles/media"; | ||
|
||
function MyPointBlock() { | ||
return ( | ||
<Container> | ||
<span>내 포인트</span> | ||
<RowBox> | ||
<span>5,400</span> | ||
<Icon icon="heroicons:information-circle-20-solid" /> | ||
</RowBox> | ||
</Container> | ||
); | ||
} | ||
|
||
export default MyPointBlock; | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 10px 12px 10px 16px; | ||
gap: 10px; | ||
position: absolute; | ||
width: 180px; | ||
margin: 10px 24px; | ||
background: #10b981; | ||
border-radius: 6px; | ||
font-weight: 600; | ||
font-size: 14px; | ||
line-height: 17px; | ||
color: #ffffff; | ||
${media.medium` | ||
position: relative; | ||
top: 0px; | ||
right: 0px; | ||
width: 100%; | ||
margin: 0; | ||
border-radius: 0px 0px 8px 8px; | ||
`} | ||
`; | ||
|
||
const RowBox = styled.span` | ||
display: flex; | ||
align-items: center; | ||
gap: 5px; | ||
`; |
Oops, something went wrong.