Skip to content

Commit

Permalink
fix: client 충돌 해결
Browse files Browse the repository at this point in the history
Merge branch 'main' of github.com:boostcampwm-2024/web25-funch
  • Loading branch information
JYKIM317 committed Dec 4, 2024
2 parents 74eba03 + 65d9c23 commit 6e56c4c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/src/app/(domain)/features/RecommendedLivesRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@
import Lives from '@components/livesGrid/Lives';
import type { Broadcast } from '@libs/internalTypes';
import useFollowingLives from '@hooks/useFollowingLives';
import Image from 'next/image';
import noContents from '@assets/no_result.png';
import clsx from 'clsx';

const RecommendedLivesRenderer = ({ lives }: { lives: Broadcast[] }) => {
const { ids } = useFollowingLives();

const filteredLives = lives?.filter((live) => !ids.includes(live.broadcastId)) || [];

if (filteredLives.length === 0) {
return (
<div className={clsx('flex flex-col items-center')}>
<Image src={noContents} alt="no-following-lives" width={200} height={200} />
<p className={clsx('text-content-neutral-primary funch-medium16 mt-4')}>라이브 중인 방송이 없습니다.</p>
</div>
);
}

return (
<Lives lives={filteredLives}>
{({ visibleLives, isExpanded, toggle }) => (
Expand Down

0 comments on commit 6e56c4c

Please sign in to comment.