- {section.comments.map(data => (
+ {section.comments.map(section => (
{/* TaskMessageTop */}
-
-
- {data.username}
+
+
+
+ {section.username}
+
{/* 1일 전 */}
-
-
+
+
+
+
+
+
+ 삭제요청
+
+
+
+ 선택한 회고 카드를 삭제하시겠습니까?
+
+
+
+
+
+
+
+
+
+
+
+ {section.content}
+ {/* (수정됨) */}
+
+
+
+
+ {/* TaskTextModal */}
+
+
+
{/* TaskMessageMain */}
-
- {data.content}
- {/* TeamActionItemsTask */}
-
- {/* MessageModal */}
-
-
-
-
-
-
))}
@@ -73,7 +127,7 @@ const TeamTaskMessage: FC
= ({ section }) => {
{/* AddMessage */}
- 확인
+ 확인
>
diff --git a/src/mocks/handlers.ts b/src/mocks/handlers.ts
index 65d120e..68b7534 100644
--- a/src/mocks/handlers.ts
+++ b/src/mocks/handlers.ts
@@ -64,6 +64,14 @@ export const SectionHandlers: RequestHandler[] = [
};
return HttpResponse.json(mockLikes);
}),
+ http.put(`${SECTION_ROUTE}/action-items`, () => {
+ const mockActionItems = {
+ code: 0,
+ message: 'string',
+ data: {},
+ };
+ return HttpResponse.json(mockActionItems);
+ }),
];
//teamMembers
diff --git a/src/pages/MyPage.tsx b/src/pages/MyPage.tsx
index bc1561c..a552b96 100644
--- a/src/pages/MyPage.tsx
+++ b/src/pages/MyPage.tsx
@@ -56,7 +56,7 @@ const MyPage = () => {
- {userData?.thumbnail}
+ {userData?.data.thumbnail}
diff --git a/src/pages/RetroListPage.tsx b/src/pages/RetroListPage.tsx
index f04808d..9dd30f6 100644
--- a/src/pages/RetroListPage.tsx
+++ b/src/pages/RetroListPage.tsx
@@ -83,6 +83,7 @@ const RetroListPage = () => {
startDate: formatDate(item.startDate),
createdDate: formatDate(item.createdDate),
updatedDate: formatDate(item.updatedDate),
+ username: item.username,
}));
setRetroData(rawData);
}, [data.nodes]);
@@ -104,6 +105,7 @@ const RetroListPage = () => {
startDate: formatDate(item.startDate),
createdDate: formatDate(item.createdDate),
updatedDate: formatDate(item.updatedDate),
+ username: item.username,
}));
setRetroData(filtered);
} else if (filterType === 'Teams') {
@@ -121,6 +123,7 @@ const RetroListPage = () => {
startDate: formatDate(item.startDate),
createdDate: formatDate(item.createdDate),
updatedDate: formatDate(item.updatedDate),
+ username: item.username,
}));
setRetroData(filtered);
} else if (filterType === 'ALL') {
@@ -136,6 +139,7 @@ const RetroListPage = () => {
startDate: formatDate(item.startDate),
createdDate: formatDate(item.createdDate),
updatedDate: formatDate(item.updatedDate),
+ username: item.username,
}));
setRetroData(rawData);
}
diff --git a/src/pages/RevisePage.tsx b/src/pages/RevisePage.tsx
index 8edef0a..2738a72 100644
--- a/src/pages/RevisePage.tsx
+++ b/src/pages/RevisePage.tsx
@@ -20,14 +20,16 @@ const RetroRevisePage = () => {
const teamId = Number(query[3]);
const [retro, setRetro] = useState();
const [members, setMembers] = useState();
- const [status, setStatus] = useState();
+ const [status, setStatus] = useState('NOT_STARTED');
const toast = useCustomToast();
const FetchRetrospective = async () => {
try {
const data = await RetrospectiveService.onlyGet({ retrospectiveId: retrospectiveId });
setRetro(data.data);
- setStatus(retro?.status);
+ if (retro) {
+ setStatus(retro.status);
+ }
} catch (e) {
toast.error(e);
}
diff --git a/src/pages/SectionPage.tsx b/src/pages/SectionPage.tsx
index f9e2229..4327402 100644
--- a/src/pages/SectionPage.tsx
+++ b/src/pages/SectionPage.tsx
@@ -67,7 +67,7 @@ const RetroTeamPage = () => {
fetchSection();
fetchRetrospective();
fetchTemplate();
- }, [retro?.status, template?.values, section]);
+ }, [retro?.status, template?.values]);
return (
diff --git a/src/pages/SurveyPage.tsx b/src/pages/SurveyPage.tsx
index 7e3403d..4cf9f43 100644
--- a/src/pages/SurveyPage.tsx
+++ b/src/pages/SurveyPage.tsx
@@ -1,6 +1,7 @@
import React, { useState, useEffect } from 'react';
+import { useNavigate } from 'react-router-dom';
import { Text, Button, Divider } from '@chakra-ui/react';
-// import { PostSurvey } from '@/api/survey/postSurvey';
+import { PostSurvey } from '@/api/survey/postSurvey';
import AgeInput from '@/components/survey/AgeInput';
import CityRadio from '@/components/survey/CityRadio';
import GenderRadio from '@/components/survey/GenderRadio';
@@ -14,13 +15,14 @@ const SurveyPage: React.FC = () => {
localStorage.setItem('surveyVisited', 'true');
}, []);
+ const navigate = useNavigate();
+
const handleSurveyButtonClick = () => {
handleSurvey();
};
const handleSurvey = async () => {
try {
- // + path 기타 + purpose 기타 + purpose 복수 답안 + 직업 value
console.log(
'나이는:',
age,
@@ -34,36 +36,34 @@ const SurveyPage: React.FC = () => {
path,
'/목적은(복수선택):',
purpose,
- '/기타 목적은:',
- otherPurpose,
);
- // const SurveyRequest = await PostSurvey({
- // age: age,
- // gender: gender,
- // occupation: job,
- // region: city,
- // source: path,
- // purpose: purpose,
- // otherPurpose: otherPurpose
- // });
- // console.log('설문조사 전송 성공', SurveyRequest);
- // alert('설문조사가 전송되었습니다.');
+ const SurveyRequest = await PostSurvey({
+ age: numAge,
+ gender: gender,
+ occupation: job,
+ region: city,
+ source: path,
+ purposes: purpose,
+ });
+ console.log('설문조사 전송 성공', SurveyRequest);
+ alert('설문조사가 전송되었습니다.');
+ navigate('/');
} catch (error) {
console.error('실패입니다.', error);
}
};
const [age, setAge] = useState('');
- const [gender, setGender] = useState('female');
+ const [gender, setGender] = useState('FEMALE');
const [job, setJob] = useState('');
const [city, setCity] = useState('서울');
const [path, setPath] = useState('');
- const [purpose, setPurpose] = useState();
- const [otherPurpose, setOtherPurpose] = useState();
+ const [purpose, setPurpose] = useState();
const handleAgeChange = (age: string) => {
setAge(age);
};
+ const numAge: number = parseInt(age, 10);
const handleGenderChange = (gender: string) => {
setGender(gender);
};
@@ -76,12 +76,10 @@ const SurveyPage: React.FC = () => {
const handlePathChange = (path: string) => {
setPath(path);
};
- const handlePurposeChange = (purpose: string) => {
+ const handlePurposeChange = (purpose: string[]) => {
setPurpose(purpose);
};
- const handleOtherPurposeChange = (otherPurpose: string) => {
- setOtherPurpose(otherPurpose);
- };
+
return (
<>
@@ -99,7 +97,7 @@ const SurveyPage: React.FC = () => {
-
+
diff --git a/src/styles/RetroList/ContentsList.styles.ts b/src/styles/RetroList/ContentsList.styles.ts
index 0d2be60..c8a7345 100644
--- a/src/styles/RetroList/ContentsList.styles.ts
+++ b/src/styles/RetroList/ContentsList.styles.ts
@@ -1,3 +1,6 @@
+import { CiStar } from 'react-icons/ci';
+import { FaStar } from 'react-icons/fa';
+import { HiOutlineDotsHorizontal } from 'react-icons/hi';
import styled from 'styled-components';
export const BoardContainer = styled.div`
@@ -134,3 +137,20 @@ export const Icon = styled.img`
cursor: pointer;
}
`;
+export const StyledCiStar = styled(CiStar)`
+ &:hover {
+ cursor: pointer;
+ }
+`;
+
+export const StyledHiOutlineDotsHorizontal = styled(HiOutlineDotsHorizontal)`
+ &:hover {
+ cursor: pointer;
+ }
+`;
+
+export const StyledFaStar = styled(FaStar)`
+ &:hover {
+ cursor: pointer;
+ }
+`;
diff --git a/src/styles/inviteTeam/AcceptInvite.ts b/src/styles/inviteTeam/AcceptInvite.ts
new file mode 100644
index 0000000..dac61b5
--- /dev/null
+++ b/src/styles/inviteTeam/AcceptInvite.ts
@@ -0,0 +1,13 @@
+import styled from 'styled-components';
+
+export const Container = styled.div`
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+`;
+
+export const TextContainer = styled.div`
+ margin-bottom: 2rem;
+`;
diff --git a/src/styles/writeRetroStyles/Layout.style.ts b/src/styles/writeRetroStyles/Layout.style.ts
index 9cf5618..311d5ce 100644
--- a/src/styles/writeRetroStyles/Layout.style.ts
+++ b/src/styles/writeRetroStyles/Layout.style.ts
@@ -177,7 +177,7 @@ export const TaskText = styled.p`
vertical-align: top;
display: inline-block;
margin: 20px 0;
- margin-top: 5px;
+ margin-top: 20px;
&:hover {
cursor: pointer;
}
@@ -242,16 +242,12 @@ export const TaskMessageLine = styled.div`
export const TaskMessageStyle = styled.div`
min-height: 35px;
- display: flex;
margin-top: 10px;
`;
export const MessageUserProfile = styled.div``;
-export const MessageTopStyle = styled.div`
- display: flex;
- position: relative;
-`;
+export const MessageTopStyle = styled.div``;
export const MessageUserName = styled.p`
font-size: 15px;
diff --git a/yarn.lock b/yarn.lock
index 10c65c3..e0916ab 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9620,7 +9620,7 @@ react-remove-scroll@^2.5.6:
react-router-dom@^6.22.3:
version "6.22.3"
- resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.3.tgz"
+ resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.22.3.tgz#9781415667fd1361a475146c5826d9f16752a691"
integrity sha512-7ZILI7HjcE+p31oQvwbokjk6OA/bnFxrhJ19n82Ex9Ph8fNAq+Hm/7KchpMGlTgWhUxRHMMCut+vEtNpWpowKw==
dependencies:
"@remix-run/router" "1.15.3"
@@ -11469,6 +11469,7 @@ wordwrap@~0.0.2:
integrity sha512-1tMA907+V4QmxV7dbRvb4/8MaRALK6q9Abid3ndMYnbyo8piisCmeONVqVSXqQA3KaP4SLt5b7ud6E2sqP8TFw==
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
+ name wrap-ansi-cjs
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==