Skip to content

Commit

Permalink
refactor: delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
moolmin committed Nov 18, 2024
1 parent f58a97d commit cb181c1
Show file tree
Hide file tree
Showing 21 changed files with 102 additions and 366 deletions.
2 changes: 1 addition & 1 deletion src/app/(layouts)/header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
}

.menu.open {
top: 0; /* 햄버거 메뉴 아래로 내려오게 합니다 */
top: 0;
transform: translateY(0);
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/(landing)/_components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Button } from "antd";

const privacyPolicyUrl =
"https://qqqqworld.notion.site/10a81b02780680a9b219f3be379d8191?pvs=4";
const termsOfServiceUrl = "https://qqqqworld.notion.site/";
const termsOfServiceUrl = "https://qqqqworld.notion.site";

export default function Footer() {
return (
Expand Down
41 changes: 0 additions & 41 deletions src/app/(pages)/4q-create/(modals)/shareModal.module.css

This file was deleted.

78 changes: 0 additions & 78 deletions src/app/(pages)/4q-create/(modals)/shareModal.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/app/(pages)/4q-create/(modals)/tagSelectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function TagSelector({
const MAX_TAGS = 3;

const isHotTag = (tag: string) => {

return hotTags.includes(tag);
};

Expand Down
3 changes: 0 additions & 3 deletions src/app/(pages)/4q-create/download/[ticketId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ export default function Page() {
>
다운로드
</Button>
{/* <Button onClick={showModal} type="primary" icon={<BiSolidShareAlt />} size="large" className={styles.shareBtn}>
공유하기
</Button> */}
</div>
<Button type="text" href="/" className={styles.mainBtn}>
메인으로 가기
Expand Down
1 change: 0 additions & 1 deletion src/app/(pages)/4q-gallery/_components/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type DetailProps = {
};

export default function Detail({ item }: DetailProps) {
const [active, setActive] = useState(item.liked);
const [createStep, setStep] = useState<boolean>(() => {
return sessionStorage.getItem("createStep") === "true";
});
Expand Down
1 change: 0 additions & 1 deletion src/app/(pages)/4q-gallery/_components/second.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ export default function Third() {
</div>
) : (
<>
{/* <div className={styles.subTitle}>QR의 위치를 선택해주세요.</div> */}
<div className={styles.canvasContainer}>
<div className={styles.backgroundContainer}>
<Stage width={280} height={280} ref={stageRef}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/4q-gallery/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// page.tsx
"use client";

export const dynamic = "force-dynamic";
import React, { useState, Suspense } from "react";
import { useSearchParams } from "next/navigation";
Expand Down
6 changes: 0 additions & 6 deletions src/app/(pages)/feedback/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
flex-direction: column;
align-items: center;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
/*box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;*/
}

.title {
Expand Down Expand Up @@ -58,11 +57,6 @@
color: var(--primary-color);
}

/* .homeBtn {
background-color: #000 !important;
margin-top: 10px;
} */

.homeBtn {
padding: 10px 14px;
background-color: #000;
Expand Down
5 changes: 1 addition & 4 deletions src/app/(pages)/feedback/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,7 @@ export default function Page() {
<div className={styles.label}>
추가로 하고 싶은 말씀이 있으신가요?
</div>
<Form.Item
name="comment"
// label=""
>
<Form.Item name="comment">
<TextArea
showCount
maxLength={200}
Expand Down
2 changes: 0 additions & 2 deletions src/app/(pages)/login/email/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
flex-direction: column;
align-items: center;
justify-content: flex-start;
/*height: 100vh;*/
position: relative;
margin-top: 150px;
overflow-y: hidden;
Expand All @@ -23,7 +22,6 @@

.emailLink {
color: #000;
/*margin: 0 25px;*/
text-decoration: underline;
text-underline-position: under;
font-size: 14px;
Expand Down
7 changes: 3 additions & 4 deletions src/app/(pages)/login/email/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ type FieldType = {
};

export default function Page() {
const { login } = useUserContext(); // UserContext의 login 함수 사용
const { login } = useUserContext();
const router = useRouter();

const onFinish = async (values: FieldType) => {
const email = values.email ?? "";
const password = values.password ?? "";

try {
const response = await requestLogin(email, password); // 로그인 요청
const response = await requestLogin(email, password);
if (response.success) {
message.success("로그인에 성공했습니다.");

// 로그인 성공 후 유저 정보 요청

const userInfo = await requestUserInfo();
if (userInfo) {
login(userInfo);
Expand Down
Loading

0 comments on commit cb181c1

Please sign in to comment.