Skip to content

Commit

Permalink
[Chore] 안 쓰이는 부분 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariling committed Jan 4, 2024
1 parent 269a180 commit 182d14a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 139 deletions.
15 changes: 15 additions & 0 deletions src/apis/interview/api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import axios from "axios";

export const getInterviewApi = async (name: string) => {
return await axios
.get(`${process.env.NEXT_PUBLIC_SERVER_URL}/api/interviews?part=${name}`)
.then((response) => {
return response;
})
.catch((error) => {
if (axios.isAxiosError(error)) {
const result = error.response?.data?.detail;
return result;
}
});
};
1 change: 0 additions & 1 deletion src/components/interview/InterviewCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { InterviewCardProp } from "@/store/testData";
import Image from "next/image";
import React from "react";
import { styled } from "twin.macro";
Expand Down
16 changes: 1 addition & 15 deletions src/components/interview/InterviewCardWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { useEffect, useState } from "react";
import { css, styled } from "twin.macro";
import Arrowdown from "@/svg/arrowdown.svg";
import { TotalInterviewInfo } from "@/store/type";
import axios from "axios";
import CallInterviewCard from "./CallInterviewCard";
import { getInterviewApi } from "@/apis/interview/api";

const InterviewCardWrapper = () => {
const options = [
Expand Down Expand Up @@ -95,20 +95,6 @@ const InterviewCardWrapper = () => {

export default InterviewCardWrapper;

export const getInterviewApi = async (name: string) => {
return await axios
.get(`${process.env.NEXT_PUBLIC_SERVER_URL}/api/interviews?part=${name}`)
.then((response) => {
return response;
})
.catch((error) => {
if (axios.isAxiosError(error)) {
const result = error.response?.data?.detail;
return result;
}
});
};

const InterviewButton = styled.button(({ select }: { select: boolean }) => [
css`
width: 140px;
Expand Down
1 change: 0 additions & 1 deletion src/components/interview/QNABox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ type Props = {
};

const QNABox = (props: Props) => {
//이부분은 나중에 바뀔 것..! 서버에서 받은걸로 하나하나 돌릴것이기 때문!
return (
<>
{props.interviewAnswers.map((e, i) => (
Expand Down
1 change: 0 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Footer from "@/components/utils/Footer";
import Nav from "@/components/utils/Nav";
import "@/styles/globals.css";
import type { AppProps } from "next/app";
import dynamic from "next/dynamic";
Expand Down
1 change: 0 additions & 1 deletion src/pages/auth/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { userInfoState } from "@/store/atoms";
import { useSearchParams } from "next/navigation";
import { useRouter } from "next/router";
import React, { useEffect } from "react";
import { useSetRecoilState } from "recoil";
Expand Down
120 changes: 0 additions & 120 deletions src/store/testData.tsx

This file was deleted.

0 comments on commit 182d14a

Please sign in to comment.