-
Notifications
You must be signed in to change notification settings - Fork 2
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 #52 from KUIT-Space/feat#48-pay-home
Feat#48 pay home
- Loading branch information
Showing
25 changed files
with
1,117 additions
and
14 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { BottomBtn } from "@/components/BottomBtn"; | ||
import Check from "@/assets/PayPage/check.svg"; | ||
import * as s from "@/pages/PayPage/PayPage.styled"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
const CompleteCreatePay = () => { | ||
const navigator = useNavigate(); | ||
return ( | ||
<> | ||
{/* ์ฌ๊ธฐ์ ์ง๊ธ height ๋ฃ์ด์ค์ผ */} | ||
<s.ContainerDiv> | ||
<div style={{ display: "flex", justifyContent: "center" }}> | ||
<img src={Check}></img> | ||
</div> | ||
<s.LargeTxt style={{ flex: 1, textAlign: "center" }}> | ||
<p>์ ์ฐ์์ฒญ์</p> | ||
<p>์๋ฃํ์ด์!</p> | ||
</s.LargeTxt> | ||
|
||
<BottomBtn | ||
onClick={() => { | ||
navigator("/pay"); | ||
}} | ||
> | ||
์ ์ฐ ํ์ผ๋ก | ||
</BottomBtn> | ||
</s.ContainerDiv> | ||
</> | ||
); | ||
}; | ||
|
||
export default CompleteCreatePay; |
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,51 @@ | ||
import { BottomBtn } from "@/components/BottomBtn"; | ||
import Check from "@/assets/PayPage/check.svg"; | ||
import * as s from "@/pages/PayPage/PayPage.styled"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
export type CompletePayType = { | ||
money?: number; | ||
account?: string; | ||
}; | ||
|
||
const CompletePay = ({ money, account }: CompletePayType) => { | ||
const navigator = useNavigate(); | ||
console.log(money); | ||
console.log(account); | ||
return ( | ||
<> | ||
{/* ์ฌ๊ธฐ์ ์ง๊ธ height ๋ฃ์ด์ค์ผ */} | ||
<s.ContainerDiv> | ||
<div style={{ display: "flex", justifyContent: "center" }}> | ||
<img src={Check}></img> | ||
</div> | ||
<s.LargeTxt style={{ flex: 1, textAlign: "center" }}> | ||
<p>์์ฒญ๋ฐ์ ์ ์ฐ์</p> | ||
<p>์๋ฃํ์์ด์!</p> | ||
</s.LargeTxt> | ||
<s.RoundDiv> | ||
<s.ColumnFlexDiv> | ||
<s.RowFlexDiv> | ||
<div>์ ์ฐ๊ธ์ก</div> | ||
<div>15000์</div> | ||
</s.RowFlexDiv> | ||
<s.RowFlexDiv> | ||
<div>์ ๊ธ ๊ณ์ข</div> | ||
<div>๊ตญ๋ฏผ 1234-14455-919293</div> | ||
</s.RowFlexDiv> | ||
</s.ColumnFlexDiv> | ||
</s.RoundDiv> | ||
|
||
<BottomBtn | ||
onClick={() => { | ||
navigator("/pay"); | ||
}} | ||
> | ||
์ ์ฐ ํ์ผ๋ก | ||
</BottomBtn> | ||
</s.ContainerDiv> | ||
</> | ||
); | ||
}; | ||
|
||
export default CompletePay; |
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,56 @@ | ||
import CheckBox from "@/components/CheckBox"; | ||
import { Member } from "@/pages/ChatPage/ChatCreatePage/ChatCreatePage.styled"; | ||
import ReactImg from "@/assets/react.svg"; | ||
import { useState } from "react"; | ||
|
||
import * as s from "@/pages/PayPage/PayPage.styled"; | ||
interface payChatDivtype { | ||
img: string; | ||
name: string; | ||
cnt: number; | ||
} | ||
|
||
const PayChatMemberDiv = () => { | ||
return ( | ||
<s.RowFlexDiv style={{ alignItems: "center" }}> | ||
<img style={{ width: "2.5rem", height: "2.5rem", marginLeft: "1.875rem" }} src={ReactImg} /> | ||
<span className="name" style={{ marginLeft: "0.75rem" }}> | ||
์ํ | ||
</span> | ||
<CheckBox></CheckBox> | ||
</s.RowFlexDiv> | ||
); | ||
}; | ||
export const PayChatDiv = ({ img, name, cnt }: payChatDivtype) => { | ||
const [flag, setFlag] = useState(false); | ||
const controlFlag = () => { | ||
setFlag(!flag); | ||
}; | ||
return ( | ||
<s.ColumnFlexDiv> | ||
<Member> | ||
<section> | ||
<img src={ReactImg} /> | ||
<span className="name">{name}</span> | ||
<s.CountText className="count">{cnt}</s.CountText> | ||
</section> | ||
{flag ? ( | ||
<CheckBox | ||
checked={true} | ||
onClick={() => { | ||
controlFlag(); | ||
}} | ||
></CheckBox> | ||
) : ( | ||
<CheckBox | ||
checked={false} | ||
onClick={() => { | ||
controlFlag(); | ||
}} | ||
></CheckBox> | ||
)} | ||
</Member> | ||
<PayChatMemberDiv></PayChatMemberDiv> | ||
</s.ColumnFlexDiv> | ||
); | ||
}; |
Oops, something went wrong.