Skip to content

Commit e1d80d0

Browse files
committed
2 parents cb16a0b + 58ad6ed commit e1d80d0

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

front/src/components/loaders/WithoutLogin.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import type { PropsWithChildren } from 'react';
2-
import { useEffect } from 'react';
32
import { Navigate } from 'react-router-dom';
43

54
import { useAuthContext } from '@/hooks/useAuthContext.tsx';
65

7-
import { toast } from '@/components/Toast/index.ts';
8-
96
import { ROUTE_URL } from '@/constants/index.ts';
107

118
export default function WithoutLogin({ children }: PropsWithChildren) {
129
const { isLogin } = useAuthContext();
13-
useEffect(() => {
14-
if (isLogin) toast.warning('로그인 후 접근할 수 없습니다.\n로그 아웃 후 이용해주세요.');
15-
}, [isLogin]);
1610
if (isLogin) {
1711
return <Navigate to={ROUTE_URL.PROGRAM.DEFAULT} />;
1812
}

front/src/pages/ProgramsPage/ProgramCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ export default function ProgramCard({
1515
actors,
1616
}: Pick<IProgram, 'actors' | 'id' | 'name' | 'profileUrl'>) {
1717
return (
18-
<div className="flex w-[200px] min-w-[200px] flex-col rounded border-2 p-4 hover:border-surface">
19-
<img className="object-con flex-grow object-cover" width={200} height={300} src={profileUrl} />
18+
<div className="flex min-h-[300px] w-[200px] min-w-[200px] flex-col gap-4 rounded border-2 p-4 hover:border-surface">
19+
<img className="object-con h-[240px] w-[160px] object-cover" src={profileUrl} />
2020
<div className="flex flex-col gap-1 text-center">
2121
<div className="truncate text-display1 text-typo">{name}</div>
22-
<div className="text-caption1">{actors}</div>
22+
<div className="truncate text-caption1">{actors}</div>
2323
</div>
2424
</div>
2525
);

front/src/pages/ProgramsPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function ProgramsPage() {
1818
const programs = data;
1919
//현재 데이터가 없어서 mock 대체
2020
return (
21-
<ul className="grid grid-cols-[repeat(5,minmax(auto,_1fr))] gap-6 overflow-auto">
21+
<ul className="grid grid-cols-[repeat(4,minmax(auto,_1fr))] gap-6 overflow-auto">
2222
{programs.map((program) => (
2323
<li key={program.id}>
2424
<Link to={ROUTE_URL.PROGRAM.PROGRAM_DETAIL(program.id)}>

0 commit comments

Comments
 (0)