Skip to content

Commit

Permalink
delete :: 설문조사 팝업 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuna committed Aug 27, 2024
1 parent 725c8f3 commit 3a723f8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 78 deletions.
3 changes: 1 addition & 2 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ refreshInstance.interceptors.request.use(
},
(error: AxiosError) => Promise.reject(error)
);

instance.interceptors.response.use(
(response) => response,
async (error: AxiosError) => {
Expand All @@ -56,8 +57,6 @@ instance.interceptors.response.use(
.catch(() => {
window.location.href = "login";
});
{
}
} catch (refreshError) {
return Promise.reject(refreshError);
}
Expand Down
16 changes: 0 additions & 16 deletions src/app/main/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,16 @@ import attendanceImg from "@/assets/svg/attendance.svg";
import outingImg from "@/assets/svg/outing.svg";
import moveClassImg from "@/assets/svg/moveClass.svg";
import BugImg from "@/assets/svg/bug.svg";
import Survey from "@/components/survey";

const Main = () => {
const [floor, setFloor] = useState<string>();
const [surveyModal, setSurveyModal] = useState<boolean>(false);
const { data: getDirector } = GetTodaydirector();
GetName();

useEffect(() => {
if (getDirector) setFloor(getDirector);
}, [getDirector]);

useEffect(() => {
const check = localStorage.getItem("survey");
if (check !== "OK") {
setSurveyModal(true);
}
}, []);

return (
<>
<Header />
Expand All @@ -50,13 +41,6 @@ const Main = () => {
<CheckPage type="outGoing" />
<CheckPage type="homecoming" />
</div>
{surveyModal && (
<Survey
onClick={() => {
setSurveyModal(false);
}}
/>
)}
</div>
</>
);
Expand Down
60 changes: 0 additions & 60 deletions src/components/survey/index.tsx

This file was deleted.

0 comments on commit 3a723f8

Please sign in to comment.