Skip to content

Commit

Permalink
[fix] bulid eslint 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chaduhwan committed Apr 8, 2024
1 parent e818f2c commit bec2aa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/(route)/list/_components/nav/LIstCompo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Root, Tool } from '@/app/_constants/toolcard'
import ToolCard from '@/app/_components/card/toolCard'

function ListCompo() {
const { data, isFetching } = useQuery<AxiosResponse<Root>>({
const { data } = useQuery<AxiosResponse<Root>>({
queryKey: ['getToolList'],
queryFn: () => axios.get('http://222.121.148.192/api/toolDetails'),
})
Expand All @@ -26,6 +26,7 @@ function ListCompo() {
toolImg={data?.toolImg || ''}
toolId={index}
company={data?.company}
key={index}
/>
)
})}
Expand Down
8 changes: 3 additions & 5 deletions app/(route)/onboard/_components/WatchWord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,15 @@ function WatchWord({
return () => {
animationRef.current?.removeEventListener('animationend', animationend)
}
}, [])
}, [handleView]) // handleView를 의존성 배열에 추가

useEffect(() => {
const timer = setTimeout(() => {
{
onAnimationEnd && onAnimationEnd()
}
onAnimationEnd && onAnimationEnd()
}, 2000)

return () => clearTimeout(timer)
}, [])
}, [onAnimationEnd]) // onAnimationEnd를 의존성 배열에 추가

const handleAnimationEnd = () => {
onAnimationEnd && onAnimationEnd()
Expand Down

0 comments on commit bec2aa8

Please sign in to comment.