Skip to content

Commit

Permalink
🛠 fix : 출처 컴포넌트 예외처리
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Nov 29, 2023
1 parent ac9d33f commit d909e94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/(Sub)/detail/[id]/components/DetailSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function DetailSection({ poseId }: DetailSectionProps) {

return (
<div className="overflow-y-auto pb-160">
<Source source={source} url={sourceUrl} />
{source && <Source source={source} url={sourceUrl} />}
<div className="flex justify-center">
<div className="relative">
<Image
Expand All @@ -54,7 +54,6 @@ export default function DetailSection({ poseId }: DetailSectionProps) {
<TagButton type="frame" value={frameCount} name={`${frameCount}컷`} />
{tagAttributes?.split(',').map((tag, index) => <TagButton key={index} name={tag} />)}
</div>

<BottomFixedDiv className="flex gap-8">
<Button className="max-w-120 bg-sub-white" type="button" onClick={handleShareLink}>
링크 공유
Expand Down
2 changes: 2 additions & 0 deletions src/components/Overlay/useOverlay.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { useContext, useEffect, useMemo, useRef, useState } from 'react';

import { OverlayControlRef, OverlayController } from './OverlayController';
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/useKakaoShare.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { useEffect } from 'react';

import { KAKAO_KEY } from '@/constants';
Expand Down

0 comments on commit d909e94

Please sign in to comment.