Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Home() {
한 곳에서 관리하는 알바 구인 플랫폼
</p>
{user ? (
<Link href="/albalist">
<Link href="/alba-list">
<p className="font-nexon-regular text-black inline-block rounded-lg bg-green-500 px-4 py-2 text-sm sm:px-6 sm:py-3 sm:text-base md:px-8 md:py-4 md:text-lg lg:px-10 lg:py-5 lg:text-xl">
알바 둘러보기
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function FormActions({ formId, albaFormDetailData }: FormActionsP
try {
await axios.delete(`/api/forms/${formId}`);
toast.success("성공적으로 삭제되었습니다.");
router.push(`/albalist`);
router.push(`/alba-list`);
} catch (error) {
console.error(error);
toast.error("삭제 중 오류가 발생했습니다.");
Expand Down Expand Up @@ -75,7 +75,7 @@ export default function FormActions({ formId, albaFormDetailData }: FormActionsP
{isLoading ? <DotLoadingSpinner /> : "지원하기"}
</FloatingBtn>
</Link>
<Link href={`/myapply/${formId}`}>
<Link href={`/my-apply/${formId}`}>
<FloatingBtn variant="white" className={buttonStyle} icon={<HiDocumentText />}>
{isLoading ? <DotLoadingSpinner /> : "내 지원내역 보기"}
</FloatingBtn>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/(albaform)/apply/[formId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function Apply() {
queryClient.invalidateQueries({ queryKey: ["myApplications"] });

toast.success("지원이 완료되었습니다.");
router.push("/myalbaform");
router.push("/my-albaform");
},

onError: (error) => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function EditTalk({ params }: { params: { albatalkId: string } })
useEffect(() => {
if (error) {
toast.error("게시글을 불러오는데 실패했습니다.");
router.push("/albatalk");
router.push("/alba-talk");
}
}, [error, router]);

Expand Down Expand Up @@ -125,7 +125,7 @@ export default function EditTalk({ params }: { params: { albatalkId: string } })

editPost(postData, {
onSuccess: () => {
router.push(`/albatalk/${postId}`);
router.push(`/alba-talk/${postId}`);
},
});
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function PostDetailSection({ postId }: { postId: string }) {
onConfirm: () => {},
onCancel: () => {},
});
router.push("/albatalk");
router.push("/alba-talk");
},
});
},
Expand All @@ -61,7 +61,7 @@ export function PostDetailSection({ postId }: { postId: string }) {
};

const handleEdit = () => {
router.push(`/albatalk/${postId}/edit`);
router.push(`/alba-talk/${postId}/edit`);
};

const dropdownOptions = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function AddTalk() {

createPost(postData, {
onSuccess: (response) => {
router.push(`/albatalk/${response.id}`);
router.push(`/alba-talk/${response.id}`);
},
});
} catch (error) {
Expand All @@ -94,7 +94,7 @@ export default function AddTalk() {
<Button
color="gray"
className="text-grayscale-50md:h-[46px] text-white md:w-[108px] md:text-[14px] lg:h-[58px] lg:w-[180px] lg:text-[18px]"
onClick={() => router.push("/albaTalk")}
onClick={() => router.push("/alba-talk")}
>
취소
</Button>
Expand Down Expand Up @@ -170,7 +170,7 @@ export default function AddTalk() {
<Button
color="gray"
className="mb-2 h-[58px] w-full rounded-[8px] bg-grayscale-100 text-white hover:bg-grayscale-200"
onClick={() => router.push("/albaTalk")}
onClick={() => router.push("/alba-talk")}
>
취소
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function AlbaTalk() {
<div className="w-full pt-[132px]">
{/* 글쓰기 버튼 - 고정 위치 수정 */}
{user && (
<Link href="/albatalk/add" className="fixed bottom-[50%] right-[8%] z-30 translate-y-1/2">
<Link href="/alba-talk/add" className="fixed bottom-[50%] right-[8%] z-30 translate-y-1/2">
<FloatingBtn icon={<RiEdit2Fill className="size-6" />} variant="orange" />
</Link>
)}
Expand All @@ -108,7 +108,7 @@ export default function AlbaTalk() {
{data?.pages.map((page) => (
<React.Fragment key={page.nextCursor}>
{page.data.map((post) => (
<div className="cursor-pointer" key={post.id} onClick={() => router.push(`/albatalk/${post.id}`)}>
<div className="cursor-pointer" key={post.id} onClick={() => router.push(`/alba-talk/${post.id}`)}>
<CardBoard
id={post.id.toString()}
title={post.title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function ApplicantPage() {
if (!user) {
router.push("/login");
} else if (user.role === userRoles.OWNER) {
router.push("/myalbaform/owner");
router.push("/my-albaform/owner");
}
}
}, [user, isUserLoading, router]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function AlbaList() {
if (!user) {
router.push("/login");
} else if (user.role !== userRoles.OWNER) {
router.push("/myalbaform/applicant");
router.push("/my-albaform/applicant");
}
}
}, [user, isLoading, router]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default function MyAlbaForm() {
router.push("/login");
} else {
if (user.role === userRoles.OWNER) {
router.push("/myalbaform/owner");
router.push("/my-albaform/owner");
} else {
router.push("/myalbaform/applicant");
router.push("/my-albaform/applicant");
}
}
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function PostsSection() {
{page.data.map((post) => (
<div key={post.id} className="flex justify-center">
<Link
href={`/albatalk/${post.id}`}
href={`/alba-talk/${post.id}`}
className="block cursor-pointer transition-transform duration-300 hover:scale-[1.02]"
>
<div className="rounded-lg border border-grayscale-100 bg-white p-6">
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/card/board/BoardComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const BoardComment = ({ id, postId, postTitle, comment, updatedAt, isAuthor = fa
const dropdownOptions = [
{
label: "게시글 보기",
onClick: () => router.push(`/albatalk/${postId}`),
onClick: () => router.push(`/alba-talk/${postId}`),
},
{
label: "삭제하기",
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/card/board/CardBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const CardBoard = ({
};

const handleEditTalk = () => {
router.push(`/albatalk/${id}/edit`);
router.push(`/alba-talk/${id}/edit`);
};

const dropdownOptions = [
Expand All @@ -100,12 +100,12 @@ const CardBoard = ({
className={`h-[220px] w-[320px] rounded-[16px] border p-4 lg:h-[240px] lg:w-[360px] ${
variant === "primary" ? "border-primary-orange-100 bg-primary-orange-50" : "border-line-100 bg-grayscale-50"
} cursor-pointer`}
onClick={() => router.push(`/albatalk/${id}`)}
onClick={() => router.push(`/alba-talk/${id}`)}
role="button"
tabIndex={0}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
router.push(`/albatalk/${id}`);
router.push(`/alba-talk/${id}`);
}
}}
>
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ export default function Header() {
</Link>

<div className={menuStyle}>
<Link href="/albalist" className={getLinkClassName("/albalist")}>
<Link href="/alba-list" className={getLinkClassName("/alba-list")}>
알바 목록
</Link>
<Link href="/albatalk" className={getLinkClassName("/albatalk")}>
<Link href="/alba-talk" className={getLinkClassName("/alba-talk")}>
알바 토크
</Link>
{user && (
<Link href="/myalbaform" className={getLinkClassName("/myalbaform")}>
<Link href="/my-albaform" className={getLinkClassName("/my-albaform")}>
내 알바폼
</Link>
)}
Expand Down
6 changes: 3 additions & 3 deletions src/app/stories/design-system/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export default function Header() {
</Link>

<div className="ml-4 flex h-16 space-x-2 sm:ml-6 sm:space-x-4 md:ml-10 md:space-x-6">
<Link href="/albalist" className={getLinkClassName("/albalist")}>
<Link href="/alba-list" className={getLinkClassName("/alba-list")}>
알바 목록
</Link>
<Link href="/albatalk" className={getLinkClassName("/albatalk")}>
<Link href="/alba-talk" className={getLinkClassName("/alba-talk")}>
알바 토크
</Link>
<Link href="/myalbaform" className={getLinkClassName("/myalbaform")}>
<Link href="/my-albaform" className={getLinkClassName("/my-albaform")}>
내 알바폼
</Link>
</div>
Expand Down
Loading