File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 11import type { PropsWithChildren } from 'react' ;
2- import { useEffect } from 'react' ;
32import { Navigate } from 'react-router-dom' ;
43
54import { useAuthContext } from '@/hooks/useAuthContext.tsx' ;
65
7- import { toast } from '@/components/Toast/index.ts' ;
8-
96import { ROUTE_URL } from '@/constants/index.ts' ;
107
118export 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 }
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) } >
You can’t perform that action at this time.
0 commit comments