Skip to content

Commit

Permalink
#97 fix: esLint error
Browse files Browse the repository at this point in the history
  • Loading branch information
iOdiO89 committed Jul 12, 2024
1 parent 71e9648 commit e917a5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/hooks/query/relation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import {
import { storeIdAtom } from "@/data/global";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { useAtom } from "jotai";
import { usePostPlanList } from "./plan";
import { useRouter } from "next/router";
import { InviteSchedule } from "@/data/inviteSchedule";
import { usePostPlanList } from "./plan";
import { useGetMyQueryKey } from "./my";
import { useRouter } from "next/router";

interface UsePostRelationProps {
storeId: string;
Expand Down Expand Up @@ -81,7 +81,7 @@ function useStaffJoin() {
body,
inviteSchedule,
}: UsePostRelationProps & { inviteSchedule: InviteSchedule }) => {
const ret = await postRelation(storeId, memberId, body);
await postRelation(storeId, memberId, body);
postPlanListMutate({ storeId, memberId, inviteSchedule });
},
onSuccess: async () => {
Expand Down
7 changes: 2 additions & 5 deletions src/pages/oauth/redirect.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { PostRelationBody } from "@/apis/relation";
import { myAtom } from "@/data/global";
import { usePostPlanList } from "@/hooks/query/plan";
import { usePostRelation, useStaffJoin } from "@/hooks/query/relation";
import { InviteResponse, InviteDataType } from "@/screen/manage/ShareLink";
import { useStaffJoin } from "@/hooks/query/relation";
import { InviteResponse } from "@/screen/manage/ShareLink";
import axios from "axios";
import { useAtom } from "jotai";
import { useRouter } from "next/router";
Expand All @@ -11,8 +10,6 @@ import { useEffect } from "react";
export default function Redirect() {
const { push } = useRouter();
const [my] = useAtom(myAtom);
const { mutate: postRelationMutate } = usePostRelation();
const { mutate: postPlanListMutate } = usePostPlanList();
const { mutate: staffJoinMutate } = useStaffJoin();

async function getInviteData(inviteDataId: string) {
Expand Down

0 comments on commit e917a5b

Please sign in to comment.