-
Notifications
You must be signed in to change notification settings - Fork 5
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/221223' into feature/#189
- Loading branch information
Showing
17 changed files
with
146 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import styled from "styled-components"; | ||
|
||
const fontSize = { sm: "16px", md: "18px", lg: "24px" }; | ||
|
||
export const TextContainer = styled.div` | ||
font-family: "Courier Prime", monospace; | ||
font-weight: ${(props) => (props.type === "bold" ? "bold" : "400")}; | ||
font-size: 18px; | ||
font-size: ${(props) => fontSize[props.size]}; | ||
color: ${(props) => props.theme[props.color]}; | ||
cursor: pointer; | ||
`; |
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,37 @@ | ||
import { useNavigate } from "react-router-dom"; | ||
import { ModalTemplate, TwotBtnTemplate, TextBtn, Spacer } from "components"; | ||
import * as S from "./PinnedModal.style"; | ||
|
||
/** | ||
* PinnedModal | ||
* | ||
* 핀 버튼 클릭 시 사용자 알림 모달 컴포넌트 | ||
* | ||
* @returns {JSX.Element} 핀 버튼 클릭 알림 모달 컴포넌트 | ||
*/ | ||
export function PinnedModal({ onClose }) { | ||
const navigate = useNavigate(); | ||
return ( | ||
<S.Background> | ||
<ModalTemplate> | ||
<Spacer /> | ||
<S.ModalContainer> | ||
<S.ModalMessage>영수증이 저장되었습니다</S.ModalMessage> {/* <Spacer /> */} | ||
</S.ModalContainer> | ||
<TwotBtnTemplate isAbsolute={false}> | ||
<TextBtn onClick={onClose} color="lightGray"> | ||
Cancel | ||
</TextBtn> | ||
<TextBtn | ||
onClick={() => { | ||
navigate("/my"); | ||
}} | ||
type="bold" | ||
> | ||
My Page | ||
</TextBtn> | ||
</TwotBtnTemplate> | ||
</ModalTemplate> | ||
</S.Background> | ||
); | ||
} |
37 changes: 37 additions & 0 deletions
37
src/components/organisms/PinnedModal/PinnedModal.style.jsx
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 styled from "styled-components"; | ||
|
||
export const Background = styled.div` | ||
height: 100%; | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
z-index: 2; | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
text-align: center; | ||
background-color: rgba(0, 0, 0, 0.1); | ||
`; | ||
|
||
export const ModalContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: space-between; | ||
width: 80%; | ||
`; | ||
|
||
export const ModalTitle = styled.span` | ||
text-align: left; | ||
font-size: 14px; | ||
font-weight: bold; | ||
margin: 10px; | ||
`; | ||
|
||
export const ModalMessage = styled.span` | ||
width: 100%; | ||
font-size: 24px; | ||
font-weight: 500; | ||
text-align: center; | ||
`; |
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 @@ | ||
export { PinnedModal } from "./PinnedModal"; |
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,7 @@ | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
export const AbortIfError = (error) => { | ||
// TODO: 에러별 화면으로 이동 | ||
const navigate = useNavigate(); | ||
navigate("/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
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