setKeywordTabOption("basic")}
- >
- 기본
+
+
+
setKeywordTabOption("basic")}
+ >
+ 기본
+
+
setKeywordTabOption("my")}
+ >
+ MY
+
-
setKeywordTabOption("my")}
- >
- MY
+
{keywordTabOption === "basic" ? (
@@ -697,7 +708,6 @@ const ExperienceEditPage = () => {
required={index === 0 || index === 1}
value={expData.contents[index].answer}
label={`${index + 1}. ${item.question}`}
- rows={8}
labelStyle={
theme.fonts.title4 + `color: ${theme.colors.neutral700}`
}
@@ -885,6 +895,13 @@ const KeywordSelect = styled.div`
justify-content: space-between;
align-items: center;
}
+ .right-container {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ gap: 11px;
+ }
.tab-list {
display: flex;
flex-direction: row;
@@ -896,6 +913,17 @@ const KeywordSelect = styled.div`
border-radius: 4px;
background: var(--neutral-50, #f7f7fb);
}
+ .refresh {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ gap: 4px;
+ }
+ .refresh-text {
+ ${(props) => props.theme.fonts.cap1};
+ color: ${(props) => props.theme.colors.neutral500};
+ }
.tab-item {
display: flex;
justify-content: center;
diff --git a/src/pages/ExperienceWritePage.tsx b/src/pages/ExperienceWritePage.tsx
index 529e878..82ca1ae 100644
--- a/src/pages/ExperienceWritePage.tsx
+++ b/src/pages/ExperienceWritePage.tsx
@@ -7,7 +7,14 @@ import {
AccordionSummary,
Popper,
} from "@mui/material";
-import { ArrowDown, ArrowLeft, Plus, Plus2, Search } from "../assets";
+import {
+ ArrowDown,
+ ArrowLeft,
+ Plus,
+ Plus2,
+ ReloadIcon,
+ Search,
+} from "../assets";
import Textarea from "../components/common/Textarea";
import { questions } from "../assets/data/questions";
import { useNavigate } from "react-router-dom";
@@ -344,6 +351,11 @@ const ExperienceWritePage = () => {
setCheckedKeywords(checkedKeywords.filter((choice) => choice.id !== item));
};
+ // 키워드 초기화
+ const handleRefresh = () => {
+ setCheckedKeywords([]);
+ };
+
// 모달 관리
const openModal = () => {
setIsModalOpen(true);
@@ -563,26 +575,32 @@ const ExperienceWritePage = () => {
-
-
setKeywordTabOption("basic")}
- >
- 기본
+
+
+
setKeywordTabOption("basic")}
+ >
+ 기본
+
+
setKeywordTabOption("my")}
+ >
+ MY
+
-
setKeywordTabOption("my")}
- >
- MY
+
{keywordTabOption === "basic" ? (
@@ -869,6 +887,13 @@ const KeywordSelect = styled.div`
justify-content: space-between;
align-items: center;
}
+ .right-container {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ gap: 11px;
+ }
.tab-list {
display: flex;
flex-direction: row;
@@ -880,6 +905,17 @@ const KeywordSelect = styled.div`
border-radius: 4px;
background: var(--neutral-50, #f7f7fb);
}
+ .refresh {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ gap: 4px;
+ }
+ .refresh-text {
+ ${(props) => props.theme.fonts.cap1};
+ color: ${(props) => props.theme.colors.neutral500};
+ }
.tab-item {
display: flex;
justify-content: center;