-
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 pull request #164 from Team-Lecue/feature/StickerAttach
[ StickerAttach ] DEV로 가거라!
- Loading branch information
Showing
18 changed files
with
185 additions
and
127 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,14 +1,11 @@ | ||
import { api } from '../../libs/api'; | ||
|
||
export async function getBookDetail() { | ||
const data = await api.get( | ||
`/api/books/detail/ee4f66f9-9cf4-4b28-90f4-f71d0ecba021`, | ||
{ | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
export async function getBookDetail(bookUuid: string) { | ||
const data = await api.get(`/api/books/detail/${bookUuid}`, { | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
); | ||
}); | ||
|
||
return data.data.data; | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Detail/components/LecueNoteListContainer/AlretBanner/AlertBanner.style.ts
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,28 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const ButtonWrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
position: fixed; | ||
bottom: 2rem; | ||
width: 92%; | ||
`; | ||
|
||
export const AlertBanner = styled.div` | ||
display: flex; | ||
gap: 0.4rem; | ||
justify-content: center; | ||
width: 90%; | ||
padding: 1.1rem 2.35rem; | ||
margin-bottom: 1rem; | ||
border-radius: 0.6rem; | ||
background: ${({ theme }) => theme.colors.white}; | ||
color: ${({ theme }) => theme.colors.key}; | ||
text-align: center; | ||
${({ theme }) => theme.fonts.Caption2_SB_12}; | ||
`; |
23 changes: 23 additions & 0 deletions
23
src/Detail/components/LecueNoteListContainer/AlretBanner/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { IcCaution } from '../../../../assets'; | ||
import Button from '../../../../components/common/Button'; | ||
import * as S from './AlertBanner.style'; | ||
|
||
interface AlertBannerProps { | ||
onClick: () => void; | ||
} | ||
|
||
function AlertBanner({ onClick }: AlertBannerProps) { | ||
return ( | ||
<S.ButtonWrapper> | ||
<S.AlertBanner> | ||
<IcCaution /> | ||
스티커는 한 번 붙이면 수정/삭제할 수 없습니다 | ||
</S.AlertBanner> | ||
<Button variant="choose" onClick={onClick}> | ||
부착 완료 | ||
</Button> | ||
</S.ButtonWrapper> | ||
); | ||
} | ||
|
||
export default AlertBanner; |
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
Oops, something went wrong.