Skip to content

Commit

Permalink
[ fix ] 소원 공유 title
Browse files Browse the repository at this point in the history
  • Loading branch information
Me1e committed Jan 13, 2024
1 parent 58d489b commit 8679297
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/Common/Modal/MainShareModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import theme from '@/styles/theme';
import styled from 'styled-components';
import ShareContent from './ShareContent';
import { useGetMainProgressData } from '@/hooks/queries/wishes';
import { useGetWishesProgress } from '@/hooks/queries/wishes';
import Image from 'next/image';
import { MainCakeImg, MainWishChatImg } from '@/public/assets/images';
import { CloseWhiteIc } from '@/public/assets/icons';
Expand All @@ -13,7 +13,7 @@ interface MainShareModalProps {

export default function MainShareModal(props: MainShareModalProps) {
const { handleToggle } = props;
const { progressData } = useGetMainProgressData();
const { wishesProgressData } = useGetWishesProgress();

return (
<>
Expand All @@ -22,14 +22,13 @@ export default function MainShareModal(props: MainShareModalProps) {
</Styled.ButtonContainer>

<Styled.Container>
{/* <Styled.Title>{progressData.title}</Styled.Title> */}
<Styled.Title>{'화정이의 앙큼 벌스데이'}</Styled.Title>
<Styled.Title>{wishesProgressData?.title}</Styled.Title>
<Image src={MainWishChatImg} alt="말풍선" />
<Image src={MainCakeImg} alt="메인 케이크 이미지" width={219} />
<Styled.PriceTextWrapper>
{'예상 케이크 금액\n'}
<Styled.PriceText>{`총 ${convertMoneyText(
progressData?.price.toString() || '0',
wishesProgressData?.price.toString() || '0',
)}원`}</Styled.PriceText>
</Styled.PriceTextWrapper>

Expand Down

0 comments on commit 8679297

Please sign in to comment.