Skip to content

Commit

Permalink
feat: 커피챗 상세 페이지 로직 변경 및 리패치 (#1706)
Browse files Browse the repository at this point in the history
* feat: 프로필 로직 변경

* fix: 코드 리패치
  • Loading branch information
hayounSong authored Dec 17, 2024
1 parent 3cc31ca commit c1142e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/components/coffeechat/Banner/CoffeeChatLottie.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import dynamic from 'next/dynamic';

const Lottie = dynamic(() => import('react-lottie'), { ssr: false });
import styled from '@emotion/styled';
import dynamic from 'next/dynamic';

import Responsive from '@/components/common/Responsive';
import { LoggingClick } from '@/components/eventLogger/components/LoggingClick';
import mobilePC from '@/public/lottie/coffee_MO.json';
import coffeePC from '@/public/lottie/coffee_PC.json';
import { PCTA_MID_MEDIA_QUERY } from '@/styles/mediaQuery';

const Lottie = dynamic(() => import('react-lottie'), { ssr: false });

function CoffeeChatLottie() {
const defaultDesktopOptions = {
loop: true,
Expand Down
19 changes: 11 additions & 8 deletions src/components/coffeechat/detail/OpenerProfile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import styled from '@emotion/styled';
import { colors } from '@sopt-makers/colors';
import { fonts } from '@sopt-makers/fonts';
import { IconMail } from '@sopt-makers/icons';
import { useDialog } from '@sopt-makers/ui';
import Link from 'next/link';
import ProfileIcon from 'public/icons/icon-profile.svg';

import { useGetCoffeechatDetail } from '@/api/endpoint/coffeechat/getCoffeechatDetail';
Expand All @@ -11,7 +13,6 @@ import RegisterCoffeechatButton from '@/components/coffeechat/detail/RegisterCof
import ShowCoffeechatToggle from '@/components/coffeechat/detail/ShowCoffeechatToggle';
import useModalState from '@/components/common/Modal/useModalState';
import { MOBILE_MEDIA_QUERY } from '@/styles/mediaQuery';
import { useDialog } from '@sopt-makers/ui';

interface OpenerProfileProps {
memberId: string;
Expand Down Expand Up @@ -40,13 +41,15 @@ export default function OpenerProfile({ memberId }: OpenerProfileProps) {
<>
{openerProfile && (
<OpenerProfileSection isMine={!!openerProfile.isMine}>
<ProfileImageBox>
{openerProfile.profileImage ? (
<ProfileImage src={openerProfile.profileImage} alt='프로필 이미지' />
) : (
<ProfileIcon />
)}
</ProfileImageBox>
<Link href={"/members/"+memberId}>
<ProfileImageBox>
{openerProfile.profileImage ? (
<ProfileImage src={openerProfile.profileImage} alt='프로필 이미지' />
) : (
<ProfileIcon />
)}
</ProfileImageBox>
</Link>
<ProfileInfoBox>
<ProfileHeader>
<Name>{openerProfile.name}</Name>
Expand Down

0 comments on commit c1142e9

Please sign in to comment.