Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/#142 회사등록 및 근로계약서 API 연결 완료 #149

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apis/contract/hooks/usePostEmployeeSign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const postSignEmployeeContract = async (req: SignEmployeeContractRequestD
return response.data;
};

export const useFetchPostContract = () =>
export const usePostSignEmployeeContract = () =>
useMutation({
mutationFn: postSignEmployeeContract,
});
4 changes: 2 additions & 2 deletions src/pages/contract/EmployeeContract/EmployeeContract.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useState } from 'react';
import { useGetMyContract } from '@/apis/contract/hooks/useGetMyContract';
import { useFetchPostContract } from '@/apis/contract/hooks/usePostContract';
import { Button, Flex, Typo } from '@/components/common';
import Layout from '@/features/layout';
import ROUTE_PATH from '@/routes/path';
import styled from '@emotion/styled';
import { useTranslation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
import { usePostSignEmployeeContract } from '@/apis/contract/hooks/usePostEmployeeSign';

export type ContractResponseData = {
salary: string;
Expand All @@ -23,7 +23,7 @@ export default function EmployeeContract() {
const { applyId } = useParams();
const applicationId = Number(applyId);
const { data: contract } = useGetMyContract(applicationId);
const mutation = useFetchPostContract();
const mutation = usePostSignEmployeeContract();
const navigate = useNavigate();
const contractData: ContractResponseData = contract || {};

Expand Down
2 changes: 0 additions & 2 deletions src/pages/registerCompany/RegisterCompany.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export default function RegisterCompany() {

if (file) {
formData.append('logoImage', file);
} else {
formData.append('logoImage', '');
}

mutation.mutate(formData, {
Expand Down
Loading