Skip to content

Commit

Permalink
๐Ÿ› fix: update qa bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubumjang committed Oct 18, 2024
1 parent d5532a6 commit 8e1ec75
Show file tree
Hide file tree
Showing 20 changed files with 251 additions and 155 deletions.
4 changes: 4 additions & 0 deletions public/icons/sijak_footer_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/sijak_footer_logo.png
Binary file not shown.
11 changes: 0 additions & 11 deletions src/app/class/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,6 @@ const LectureInfoPage = () => {
/>
</Link>
</div>
{/* {isLoading && (
<div className="desktop:flex tablet:hidden mobile:hidden w-full">
<div className="flex flex-row w-full desktop:px-[120px] desktop:pt-[80px] gap-10">
<Skeleton className="desktop:w-[588px] tablet:w-[330px] desktop:h-[588px] tablet:h-[330px]" />
<div className="flex flex-col gap-6">
<LectureSummary lectureInfo={lectureInfo} isLoading={isLoading} />
<LectureMinimap lectureInfo={lectureInfo} isLoading={isLoading} />
</div>
</div>
</div>
)} */}
{renderSummary()}
{lectureInfo && (
<LectureDetail lectureInfo={lectureInfo} isLoading={isLoading} />
Expand Down
126 changes: 63 additions & 63 deletions src/app/like/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const LikePage = () => {
},
});

const { ref, inView } = useInView({
threshold: 1.0, // 100% ๋ณด์ผ ๋•Œ ํŠธ๋ฆฌ๊ฑฐ
});
// const { ref, inView } = useInView({
// threshold: 1.0, // 100% ๋ณด์ผ ๋•Œ ํŠธ๋ฆฌ๊ฑฐ
// });

const { data, isLoading, isSuccess, refetch } = useLikeLectureList({
const { data, isLoading, isSuccess } = useLikeLectureList({
page: likeLectureParams.page,
size: likeLectureParams.size,
mode: likeLectureParams.mode,
Expand Down Expand Up @@ -95,6 +95,7 @@ const LikePage = () => {
// setHasNext(data.data.hasNext);
// }
// }, [data, isSuccess]);

useEffect(() => {
if (isSuccess) {
setLectureListData(data.data.data);
Expand All @@ -110,16 +111,16 @@ const LikePage = () => {
}));
}, [onlyCanApply]);

useEffect(() => {
if (inView && hasNext && !isLoading) {
setLikeLectureParams((prev) => {
return {
...prev,
page: prev.page + 1,
};
});
}
}, [inView, hasNext, isLoading]);
// useEffect(() => {
// if (inView && hasNext && !isLoading) {
// setLikeLectureParams((prev) => {
// return {
// ...prev,
// page: prev.page + 1,
// };
// });
// }
// }, [inView, hasNext, isLoading]);

const triggerItem = () => {
return (
Expand Down Expand Up @@ -199,7 +200,8 @@ const LikePage = () => {

return (
<NotFoundLecture
description="์•„์ง ์ฐœํ•œ ํด๋ž˜์Šค๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ๋งˆ์Œ์— ๋“œ๋Š” ๊ฐ•์ขŒ๋ฅผ ์ฐพ์•„ ์ฐœํ•ด๋ณด์„ธ์š”!"
description="์•„์ง ์ฐœํ•œ ํด๋ž˜์Šค๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค."
subDescription="๋งˆ์Œ์— ๋“œ๋Š” ๊ฐ•์ขŒ๋ฅผ ์ฐพ์•„ ์ฐœํ•ด๋ณด์„ธ์š”!"
isHideIcon
/>
);
Expand All @@ -220,56 +222,54 @@ const LikePage = () => {
</div>
</div>
</div>
<div className="flex flex-col desktop:pt-0 tablet:pt-10 pb-[209px] gap-20">
<div className="flex flex-col gap-4">
{!isLoading && lectureListData && lectureListData.length > 0 && (
<div className="flex justify-between desktop:px-[120px] tablet:px-8 mobile:px-6">
<div className="flex flex-row items-center gap-2">
<Controller
name="onlyCanApply"
control={control}
rules={{ required: false }}
render={({ field: { onChange, onBlur, value, ref } }) => (
// FIXME: ๋กœ์ง ํ™•์ธ ํ•„์š” - ๋ฉ˜ํ† ๋‹˜ ๋„์›€ ํ•„์š”
<Checkbox
id="onlyCanApply"
className="w-6 h-6"
checked={value}
onCheckedChange={(checked) => {
onChange(checked);
setLikeLectureParams((prev) => ({
...prev,
mode: !!checked,
page: 0,
}));
}}
onBlur={onBlur}
ref={ref}
/>
)}
/>
<Label
htmlFor="onlyCanApply"
className="text-base text-custom-textBlackColor"
>
<div className="desktop:flex tablet:flex mobile:hidden">
์‹ ์ฒญ ๊ฐ€๋Šฅํ•œ ํด๋ž˜์Šค๋งŒ ๋ณด๊ธฐ
</div>
<div className="desktop:hidden tablet:hidden mobile:flex">
์‹ ์ฒญ ๊ฐ€๋Šฅ๋งŒ ๋ณด๊ธฐ
</div>
</Label>
</div>
<UnifiedDialog
open={openDeleteLectureDialog}
setOpen={setOpenDeleteLectureDialog}
triggerItem={triggerItem()}
dialogTitle="๋กœ๊ทธ์•„์›ƒ ๋‹ค์ด์–ผ๋กœ๊ทธ"
dialogDescription="๋กœ๊ทธ์•„์›ƒ ํ™•์ธ ๋‹ค์ด์–ผ๋กœ๊ทธ"
dialogContent={dialogContent()}
<div className="flex flex-col w-full desktop:pt-0 tablet:pt-10 pb-[209px] gap-20">
<div className="flex flex-col gap-4">
<div className="flex justify-between desktop:px-[120px] tablet:px-8 mobile:px-6">
<div className="flex flex-row items-center gap-2">
<Controller
name="onlyCanApply"
control={control}
rules={{ required: false }}
render={({ field: { onChange, onBlur, value, ref } }) => (
// FIXME: ๋กœ์ง ํ™•์ธ ํ•„์š” - ๋ฉ˜ํ† ๋‹˜ ๋„์›€ ํ•„์š”
<Checkbox
id="onlyCanApply"
className="w-6 h-6"
checked={value}
onCheckedChange={(checked) => {
onChange(checked);
setLikeLectureParams((prev) => ({
...prev,
mode: !!checked,
page: 0,
}));
}}
onBlur={onBlur}
ref={ref}
/>
)}
/>
<Label
htmlFor="onlyCanApply"
className="text-base text-custom-textBlackColor"
>
<div className="desktop:flex tablet:flex mobile:hidden">
์‹ ์ฒญ ๊ฐ€๋Šฅํ•œ ํด๋ž˜์Šค๋งŒ ๋ณด๊ธฐ
</div>
<div className="desktop:hidden tablet:hidden mobile:flex">
์‹ ์ฒญ ๊ฐ€๋Šฅ๋งŒ ๋ณด๊ธฐ
</div>
</Label>
</div>
)}
<UnifiedDialog
open={openDeleteLectureDialog}
setOpen={setOpenDeleteLectureDialog}
triggerItem={triggerItem()}
dialogTitle="๋กœ๊ทธ์•„์›ƒ ๋‹ค์ด์–ผ๋กœ๊ทธ"
dialogDescription="๋กœ๊ทธ์•„์›ƒ ํ™•์ธ ๋‹ค์ด์–ผ๋กœ๊ทธ"
dialogContent={dialogContent()}
/>
</div>
<div className="flex items-center justify-center desktop:px-[120px] tablet:px-8 mobile:px-6">
{renderLikeCardContent()}
</div>
Expand Down
20 changes: 11 additions & 9 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,14 @@ const Home = () => {
);
}

// if (pickLectureListData && pickLectureListData.length > 0) {
// return (
// <LectureList
// lectureListData={homeLectureList?.data.pickClasses ?? []}
// type="pickLecture"
// />
// );
// }
if (pickLectureListData && pickLectureListData.length > 0) {
return (
<LectureList
lectureListData={homeLectureList?.data.pickClasses ?? []}
type="pickLecture"
/>
);
}

return (
<div className="flex w-full items-center justify-center">
Expand Down Expand Up @@ -364,7 +364,9 @@ const Home = () => {
์กฐํšŒ ์ˆ˜ ๋งŽ์€ ์ถ”์ฒœ ํด๋ž˜์Šค๋ฅผ ์†Œ๊ฐœํ• ๊ฒŒ์š”!
</div>
</div>
<div className="w-full">{renderPickLectureList()}</div>
<div className="flex justify-center items-center">
{renderPickLectureList()}
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ const HomeLectureCard = (props: HomeLectureCardProps) => {

const dialogContent = () => {
return (
<div className="flex flex-col gap-[55px] desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col desktop:gap-[55px] tablet:gap-5 mobile:gap-5 desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col items-center justify-center">
<div className="font-bold text-[28px] content-center">
<div className="font-bold text-xl content-center">
๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ
</div>
<div className="font-bold text-[28px] content-center">์„œ๋น„์Šค์—์š”</div>
<div className="font-bold text-xl content-center">์„œ๋น„์Šค์—์š”</div>
</div>
<div className="flex items-center justify-center">
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ const PickLectureCard = (props: PickLectureCardProps) => {

const dialogContent = () => {
return (
<div className="flex flex-col gap-[55px] desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col desktop:gap-[55px] tablet:gap-5 mobile:gap-5 desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col items-center justify-center">
<div className="font-bold text-[28px] content-center">
<div className="font-bold text-xl content-center">
๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ
</div>
<div className="font-bold text-[28px] content-center">์„œ๋น„์Šค์—์š”</div>
<div className="font-bold text-xl content-center">์„œ๋น„์Šค์—์š”</div>
</div>
<div className="flex items-center justify-center ">
<Button
Expand Down
8 changes: 4 additions & 4 deletions src/entities/lecture/ui/LectureFooter/LectureFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const LectureFooter = ({

const notFoundApplyPageDialogContent = () => {
return (
<div className="flex flex-col items-center justify-center gap-[55px] desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col items-center justify-center desktop:gap-[55px] tablet:gap-5 mobile:gap-5 desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col items-center justify-center">
<div className="font-bold text-[28px]">์‹ ์ฒญ ํŽ˜์ด์ง€๋ฅผ</div>
<div className="font-bold text-[28px]">๋ถˆ๋Ÿฌ์˜ค์ง€ ๋ชปํ–ˆ์–ด์š”</div>
Expand All @@ -131,12 +131,12 @@ const LectureFooter = ({

const needLoginDialogContent = () => {
return (
<div className="flex flex-col gap-[55px] desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col desktop:gap-[55px] tablet:gap-5 mobile:gap-5 desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col items-center justify-center">
<div className="font-bold text-[28px] content-center">
<div className="font-bold text-xl content-center">
๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ
</div>
<div className="font-bold text-[28px] content-center">์„œ๋น„์Šค์—์š”</div>
<div className="font-bold text-xl content-center">์„œ๋น„์Šค์—์š”</div>
</div>
<div className="flex items-center justify-center ">
<Button
Expand Down
6 changes: 3 additions & 3 deletions src/entities/lecture/ui/LectureImageInfo/LectureImageInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ const LectureImageInfo = ({

const dialogContent = () => {
return (
<div className="flex flex-col gap-[55px] desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col desktop:gap-[55px] tablet:gap-5 mobile:gap-5 desktop:pt-[35px] tablet:pt-5 mobile:pt-5">
<div className="flex flex-col items-center justify-center">
<div className="font-bold text-[28px] content-center">
<div className="font-bold text-xl content-center">
๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ
</div>
<div className="font-bold text-[28px] content-center">์„œ๋น„์Šค์—์š”</div>
<div className="font-bold text-xl content-center">์„œ๋น„์Šค์—์š”</div>
</div>
<div className="flex items-center justify-center ">
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const LectureSummaryHeader = ({

return (
<div className="flex flex-col w-full desktop:h-[76px] tablet:h-[57px] mobile:h-[54px] gap-4">
<div className="flex flex-row justify-between">
<div className="flex flex-row items-start justify-between">
{isLoading && <Skeleton className="w-[430px] h-[42px]" />}
{lectureInfo && (
<div className=" flex justify-start items-center desktop:text-[26px] tablet:text-xl mobile: text-xl desktop:w-[520px] tablet:w-[300px] mobile:w-[268px] desktop:text-ellipsis desktop:leading-[34px] tablet:text-ellipsis tablet:whitespace-normal tablet:break-words mobile:whitespace-normal mobile:break-words desktop:line-clamp-2 tablet:line-clamp-2 mobile:line-clamp-2 desktop:h-[76px] tablet:h-[56px] mobile:h-[54px] font-bold">
Expand Down
13 changes: 10 additions & 3 deletions src/entities/lecture/ui/NotFoundLecture/NotFoundLecture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import Image from "next/image";
interface NotFoundLectureProps {
isHideIcon?: boolean;
description?: string;
subDescription?: string;
}

const NotFoundLecture = ({
isHideIcon = false,
description = "์ด์šฉ์— ๋ถˆํŽธ์„ ๋“œ๋ ค ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค.",
subDescription = "",
}: NotFoundLectureProps) => {
return (
<div className="flex flex-col items-center justify-center desktop:w-full tablet:w-full mobile:w-[180px] h-full gap-[6px] pt-[173px]">
<div className="flex flex-col items-center justify-center desktop:w-full tablet:w-full mobile:w-[200px] h-full gap-[6px] pt-[173px]">
<div className="">
{!isHideIcon && (
<Image
Expand All @@ -30,8 +32,13 @@ const NotFoundLecture = ({
์กด์žฌํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
</div>
</div>
<div className="desktop:text-lg tablet:text-sm mobile:text-sm text-custom-textGrayColor font-medium">
{description}
<div className="flex flex-col items-center justify-center">
<div className="desktop:text-lg tablet:text-sm mobile:text-sm text-custom-textGrayColor font-medium">
{description}
</div>
<div className="desktop:text-lg tablet:text-sm mobile:text-sm text-custom-textGrayColor font-medium">
{subDescription}
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/Chip/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const chipStatusStyle: Record<ChipStatus, string> = {

const Chip = ({ content, handleClick, status, className }: ChipProps) => {
const containerClassName = twMerge(
"flex justify-center items-center rounded-[100px] shadow-none",
"flex justify-center items-center text-center content-center rounded-[100px] shadow-none",
className,
);
const activeChip = chipStatusStyle[status];
Expand Down
44 changes: 44 additions & 0 deletions src/shared/ui/Footer/ExternalLinkList/ExternalLinkList.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import ExternalLink, {
ExternalLinkProps,
} from "../../ExternalLink/ExternalLink";

export const externalLinkList: Array<ExternalLinkProps> = [
{
link: "https://www.notion.so/6d012c4a80f845eca3d98defc11d6d86?pvs=4",
content: "๊ฐœ์ธ์ •๋ณด์ฒ˜๋ฆฌ๋ฐฉ์นจ",
},
{
link: "https://www.notion.so/b942a4f9070442b7891cb136037ffa74?pvs=4",
content: "์ด์šฉ์•ฝ๊ด€",
},
{
link: "https://www.notion.so/17e92e6c1188429cb17ad92d84f65103?pvs=4",
content: "์œ„์น˜์ •๋ณด ์ด์šฉ์•ฝ๊ด€",
},
{
link: "https://www.notion.so/f34337d192d54efd818663cbeb2ad77c?pvs=4",
content: "์„œ๋น„์Šค๊ฐ€์ด๋“œ",
},
];

const ExternalLinkList = () => {
return (
<div className="flex flex-row h-[21px] desktop:gap-5 tablet:gap-5 mobile:gap-[5px] text-custom-textDescriptionGrayColor text-sm font-medium">
{externalLinkList.map((externalLink, idx) => (
<div className="flex flex-row items-center h-full" key={idx}>
<div key={externalLink.content}>
<ExternalLink
link={externalLink.link}
content={externalLink.content}
/>
</div>
{idx !== externalLinkList.length - 1 && (
<div className="h-[10px] border-custom-textDescriptionGrayColor text-base border-r desktop:pl-5 tablet:pl-5 mobile:pl-[5px] py-[5.5px]" />
)}
</div>
))}
</div>
);
};

export default ExternalLinkList;
1 change: 1 addition & 0 deletions src/shared/ui/Footer/ExternalLinkList/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as ExternalLinkList } from "./ExternalLinkList";
Loading

0 comments on commit 8e1ec75

Please sign in to comment.