Skip to content

Commit

Permalink
feat: 아이콘 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ymj07168 committed Nov 4, 2024
1 parent 162b577 commit 456d841
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
8 changes: 2 additions & 6 deletions src/components/common/TabBar.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { Box, Tab, Tabs } from "@mui/material";
import React from "react";
import {
faArrowTrendUp,
faFlagCheckered,
faUsers,
} from "@fortawesome/free-solid-svg-icons";
import { faBookOpen, faFlagCheckered } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

const TabBar = ({ value, handleChange }) => {
Expand All @@ -24,7 +20,7 @@ const TabBar = ({ value, handleChange }) => {
<Tab
value="total"
label="전체 글"
icon={<FontAwesomeIcon icon={faArrowTrendUp} />}
icon={<FontAwesomeIcon icon={faBookOpen} />}
iconPosition="start"
sx={{
padding: "0px 8px",
Expand Down
14 changes: 7 additions & 7 deletions src/components/mypage/SubTabBar.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Tab, Tabs } from "@mui/material";
import React from "react";
import {
faArrowTrendUp,
faFlagCheckered,
faUsers,
faChartSimple,
faHeart,
faPenToSquare,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

Expand All @@ -16,14 +16,14 @@ const SubTabBar = ({ value, handleChange }) => {
aria-label="wrapped label tabs example"
TabIndicatorProps={{
style: {
backgroundColor: "black", // 밑줄(인디케이터) 색상을 변경
backgroundColor: "black",
},
}}
>
<Tab
value="write"
label="작성 글"
icon={<FontAwesomeIcon icon={faArrowTrendUp} />}
icon={<FontAwesomeIcon icon={faPenToSquare} />}
iconPosition="start"
sx={{
padding: "0px 8px",
Expand All @@ -39,7 +39,7 @@ const SubTabBar = ({ value, handleChange }) => {
<Tab
value="like"
label="좋아요 글"
icon={<FontAwesomeIcon icon={faFlagCheckered} />}
icon={<FontAwesomeIcon icon={faHeart} />}
iconPosition="start"
sx={{
padding: "0px 8px",
Expand All @@ -55,7 +55,7 @@ const SubTabBar = ({ value, handleChange }) => {
<Tab
value="statistic"
label="통계"
icon={<FontAwesomeIcon icon={faUsers} />}
icon={<FontAwesomeIcon icon={faChartSimple} />}
iconPosition="start"
sx={{
padding: "0px 8px",
Expand Down
3 changes: 2 additions & 1 deletion src/pages/MyPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
faCalendar,
faHeart,
faPenToSquare,
faRobot,
faThumbsDown,
faThumbsUp,
} from "@fortawesome/free-solid-svg-icons";
Expand Down Expand Up @@ -120,7 +121,7 @@ const MyPage = () => {
<div className="flex flex-row items-start gap-3">
<div className="p-2 bg-blue-100 rounded-md">
<FontAwesomeIcon
icon={faPenToSquare}
icon={faRobot}
className="w-5 h-5 text-blue-950"
/>
</div>
Expand Down

0 comments on commit 456d841

Please sign in to comment.