Skip to content

Commit

Permalink
fix: 마이페이지 아이콘 깨짐 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeyeonan committed Sep 25, 2023
1 parent 3a53c57 commit d549550
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
4 changes: 2 additions & 2 deletions public/img/MypageSubmenuIcons/myCommentIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/img/MypageSubmenuIcons/myQnaIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/img/MypageSubmenuIcons/myScrapIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 16 additions & 4 deletions src/components/Mypage/SubMenuBox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Row } from 'assets/common';
import { Img, Row } from 'assets/common';
import { styled } from 'styled-components';
import { Palette } from 'styles/Palette';
import Typo from 'styles/Typo';
Expand All @@ -24,9 +24,13 @@ export const SubMenuBox = ({
style={{ width: '100%' }}
>
<Row gap={19}>
<img
src={process.env.PUBLIC_URL + `/img/MypageSubmenuIcons/${icon}.svg`}
></img>
<ImgContainer>
<Img
src={
process.env.PUBLIC_URL + `/img/MypageSubmenuIcons/${icon}.svg`
}
/>
</ImgContainer>
<Typo.b1>{children}</Typo.b1>
</Row>
<Row gap={8}>
Expand Down Expand Up @@ -54,3 +58,11 @@ export const Container = styled.div<{ borderRadius?: string }>`
padding: 25px 15px;
background: ${Palette.White};
`;

const ImgContainer = styled.div`
display: flex;
justify-content: center;
align-items: center;
width: 25px;
height: 25px;
`;

0 comments on commit d549550

Please sign in to comment.