-
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 'release/2.1.0' into feat/#315-card_blacklist
- Loading branch information
Showing
55 changed files
with
692 additions
and
79 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
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,17 @@ | ||
import useSWR from "swr"; | ||
|
||
import { realReq } from "../../../core/api/common/axios"; | ||
import { PATH } from "../../../core/api/common/constants"; | ||
import { RecentCardList } from "../../../types/cardCollection"; | ||
import { PiickleSWRResponse } from "../../../types/remote/swr"; | ||
|
||
export function useRecentlyBookmarked() { | ||
const { data } = useSWR<PiickleSWRResponse<RecentCardList>>(`${PATH.CARDS_}${PATH.CARDS_RECENT}`, realReq.GET_SWR, { | ||
suspense: true, | ||
}); | ||
|
||
return { | ||
recentlyBookmarkedDate: data?.data.data.recentlyDate, | ||
recentlyBookmarkedCards: data?.data.data.cardResponseDtos, | ||
}; | ||
} |
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
16 changes: 0 additions & 16 deletions
16
src/@components/BestPiicklePage/BestPiickleRecommend/hooks/useRecentlyBookmarked.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import IcMenuBtn from "../../../asset/icon/IcMenuBtn"; | ||
import IcShareBtn from "../../../asset/icon/IcShareBtn"; | ||
import useOutClickCloser from "../../@common/hooks/useOutClickCloser"; | ||
import Modal from "../../@common/Modal"; | ||
import * as St from "./style"; | ||
|
||
interface CoachMarkProps { | ||
closeHandler: () => void; | ||
} | ||
|
||
export default function CoachMark(props: CoachMarkProps) { | ||
const { closeHandler } = props; | ||
const outClickCloserRef = useOutClickCloser(closeHandler, true); | ||
|
||
return ( | ||
<Modal theme={"COACHMARK"} closeHandler={closeHandler}> | ||
<St.Container ref={outClickCloserRef}> | ||
<St.Contents> | ||
새로 생긴 기능들을 | ||
<br /> | ||
확인해보세요 | ||
</St.Contents> | ||
<St.ImageWrapper> | ||
<St.ButtonWrapper> | ||
<IcMenuBtn isLighted={true} /> | ||
</St.ButtonWrapper> | ||
<St.ButtonWrapper> | ||
<St.IconWrapper> | ||
<IcShareBtn isLighted={true} /> | ||
</St.IconWrapper> | ||
<St.ButtonLabel>공유하기</St.ButtonLabel> | ||
</St.ButtonWrapper> | ||
</St.ImageWrapper> | ||
</St.Container> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Container = styled.section` | ||
position: absolute; | ||
right: 0; | ||
margin-top: 5.2rem; | ||
height: calc((100% + 3.3rem) * 0.77); | ||
padding-bottom: 10.5rem; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
`; | ||
|
||
export const Contents = styled.p` | ||
text-align: right; | ||
padding-right: 1.6rem; | ||
margin-bottom: 2.5rem; | ||
${({ theme }) => theme.newFonts.caption1} | ||
color: ${({ theme }) => theme.newColors.white}; | ||
`; | ||
|
||
export const ImageWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-end; | ||
margin-right: 2.1rem; | ||
gap: 2.4rem; | ||
`; | ||
|
||
export const ButtonWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 4.1rem; | ||
`; | ||
|
||
export const IconWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 4rem; | ||
height: 4rem; | ||
`; | ||
|
||
export const ButtonLabel = styled.p` | ||
margin-top: 0.6rem; | ||
${({ theme }) => theme.newFonts.caption1}; | ||
color: ${({ theme }) => theme.newColors.white}; | ||
`; |
Oops, something went wrong.