Skip to content

Commit

Permalink
fix ">" 글씨를 svg아이콘으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
leejiho9898 committed Oct 26, 2023
1 parent edcbc77 commit 9448431
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions apps/jurumarble/src/app/vote/[id]/components/VoteDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import depths from 'lib/styles/depths';
import Image from 'next/image';
import { useRouter } from 'next/navigation';
import { drinkWhiteImage } from 'public/images';
import { SvgIcCheck } from 'src/assets/icons/components';
import { SvgIcCheck, SvgIcPrev } from 'src/assets/icons/components';
import styled, { css } from 'styled-components';

type AorB = 'A' | 'B';
Expand Down Expand Up @@ -114,7 +114,10 @@ function VoteDescription({
<OverlayPercent>{percentageA}%</OverlayPercent>
<OverlayCount> {totalCountA}</OverlayCount>
{voteType === 'DRINK' && (
<OverlayButton>술 정보 &nbsp; {'>'}</OverlayButton>
<OverlayButton>
술 정보 &nbsp;
<SvgIcPrev transform="rotate(180)" height={10} width={12} />
</OverlayButton>
)}
</div>
<AorBMark AorB="A">A</AorBMark>
Expand Down Expand Up @@ -143,7 +146,10 @@ function VoteDescription({
<OverlayPercent>{percentageB}%</OverlayPercent>
<OverlayCount> {totalCountB}</OverlayCount>
{voteType === 'DRINK' && (
<OverlayButton>술 정보&nbsp; {'>'}</OverlayButton>
<OverlayButton>
술 정보&nbsp;
<SvgIcPrev transform="rotate(180)" height={10} width={12} />
</OverlayButton>
)}
</div>
<AorBMark AorB="B">B</AorBMark>
Expand Down Expand Up @@ -298,6 +304,7 @@ const OverlayButton = styled.button`
background-color: ${theme.colors.main_01};
`}
display: flex;
align-items: center;
border-radius: 4px;
margin-top: 8px;
padding: 6px 8px;
Expand Down

0 comments on commit 9448431

Please sign in to comment.