diff --git a/next.config.ts b/next.config.ts index 566197c..2b92da0 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,8 +1,15 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ reactCompiler: true, + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "ditda-public-bucket.s3.ap-northeast-2.amazonaws.com", + }, + ], + }, turbopack: { rules: { "*.svg": { diff --git a/src/app/instructor/my/page.tsx b/src/app/instructor/my/page.tsx index b8b2e26..a31f1b5 100644 --- a/src/app/instructor/my/page.tsx +++ b/src/app/instructor/my/page.tsx @@ -1,11 +1,17 @@ +import { cookies } from "next/headers"; + import { CommissionsHistorySection, MyInfoSection } from "@/widgets/instructor/my"; -const page = () => { +const page = async () => { + const cookieStore = await cookies(); + const name = cookieStore.get("userName")?.value ?? ""; + const profileImageUrl = cookieStore.get("userProfileImageUrl")?.value; + return (

마이페이지

- +
diff --git a/src/app/instructor/page.tsx b/src/app/instructor/page.tsx index 929fcc6..fbd4625 100644 --- a/src/app/instructor/page.tsx +++ b/src/app/instructor/page.tsx @@ -1,13 +1,18 @@ +import { cookies } from "next/headers"; + import { DraftSubmissionStatusSection, MatchingCommissionsSection, ModifyingCommissionsSection, } from "@/widgets/instructor/home"; -const page = () => { +const page = async () => { + const cookieStore = await cookies(); + const name = cookieStore.get("userName")?.value ?? ""; + return (
-

다현님, 어서오세요!

+

{name}님, 어서오세요!

diff --git a/src/app/instructor/revision/[commissionId]/page.tsx b/src/app/instructor/revision/[commissionId]/page.tsx index 2aefc09..e7d0d32 100644 --- a/src/app/instructor/revision/[commissionId]/page.tsx +++ b/src/app/instructor/revision/[commissionId]/page.tsx @@ -10,7 +10,7 @@ import { MAX_SELECTABLE_COUNT } from "@/widgets/instructor/revision/config/revis import { draftFilesData, draftRevisionDetailData, -} from "@/widgets/instructor/revision/model/revision"; +} from "@/widgets/instructor/revision/model/revisionMock"; const Page = () => { const router = useRouter(); diff --git a/src/features/auth/api/logout.ts b/src/features/auth/api/auth.ts similarity index 79% rename from src/features/auth/api/logout.ts rename to src/features/auth/api/auth.ts index 4d2143a..f86dbbf 100644 --- a/src/features/auth/api/logout.ts +++ b/src/features/auth/api/auth.ts @@ -5,9 +5,10 @@ import { getApiResponseMessage, toApiError, } from "@/shared/api/client"; -import type { ApiResponse } from "@/shared/api/types"; +import type { ApiResponse } from "@/shared/api/commonType"; -export const logout = async () => { +// 로그아웃 +export const postLogout = async () => { try { const response = await api .post(createApiPath("/api/v1/auth/logout")) diff --git a/src/features/auth/index.ts b/src/features/auth/index.ts index b2eae93..211187b 100644 --- a/src/features/auth/index.ts +++ b/src/features/auth/index.ts @@ -1,3 +1,3 @@ -export { logout } from "./api/logout"; +export { postLogout } from "./api/auth"; export { useLogout } from "./model/useLogout"; export { default as LogoutSidebarMenu } from "./ui/LogoutSidebarMenu"; diff --git a/src/features/auth/model/useLogout.ts b/src/features/auth/model/useLogout.ts index 588fa3a..1ca8113 100644 --- a/src/features/auth/model/useLogout.ts +++ b/src/features/auth/model/useLogout.ts @@ -3,7 +3,7 @@ import { useRouter } from "next/navigation"; import { useState } from "react"; -import { logout } from "@/features/auth/api/logout"; +import { postLogout } from "@/features/auth/api/auth"; import { clearClientAuth } from "@/shared/lib/auth/client"; export const useLogout = () => { @@ -16,7 +16,7 @@ export const useLogout = () => { setIsLoggingOut(true); try { - await logout(); + await postLogout(); } catch { // 클라이언트 세션 정리는 로그아웃 API 실패 여부와 무관하게 진행합니다. } finally { diff --git a/src/features/instructor/choose/index.ts b/src/features/instructor/choose/index.ts index b648798..9369290 100644 --- a/src/features/instructor/choose/index.ts +++ b/src/features/instructor/choose/index.ts @@ -1,3 +1,3 @@ -export type { CommissionWithDrafts, Draft, DraftDetail } from "./model/choose"; -export { commissionDraftsData, draftDetailsData } from "./model/choose"; +export type { CommissionWithDrafts, Draft, DraftDetail } from "./model/chooseMock"; +export { commissionDraftsData, draftDetailsData } from "./model/chooseMock"; export { default as DraftCard } from "./ui/DraftCard"; diff --git a/src/features/instructor/choose/model/choose.ts b/src/features/instructor/choose/model/chooseMock.ts similarity index 98% rename from src/features/instructor/choose/model/choose.ts rename to src/features/instructor/choose/model/chooseMock.ts index 47d8177..ea936af 100644 --- a/src/features/instructor/choose/model/choose.ts +++ b/src/features/instructor/choose/model/chooseMock.ts @@ -12,7 +12,7 @@ export type CommissionWithDrafts = { export const commissionDraftsData: CommissionWithDrafts[] = [ { - commissionId: 11, + commissionId: 4, title: "해커스톡 왕초보 영어 - 기초 문법편", drafts: [ { draftId: 41, thumbnailUrl: "/images/thumbnail_mock.jpg" }, @@ -22,7 +22,7 @@ export const commissionDraftsData: CommissionWithDrafts[] = [ ], }, { - commissionId: 15, + commissionId: 6, title: "고등 국어 문학 - 현대시 집중", drafts: [ { draftId: 51, thumbnailUrl: "/images/thumbnail_mock.jpg" }, diff --git a/src/features/instructor/home/api/home.ts b/src/features/instructor/home/api/home.ts new file mode 100644 index 0000000..a82eee7 --- /dev/null +++ b/src/features/instructor/home/api/home.ts @@ -0,0 +1,37 @@ +import type { + DraftSubmissionItem, + GetDraftSubmissionsResult, + GetMatchingCommissionsResult, + GetRevisionsResult, + MatchingItem, + ModifyingItem, +} from "@/features/instructor/home/api/homeTypes"; +import { api, createApiPath } from "@/shared/api/client"; +import type { ApiResponse } from "@/shared/api/commonType"; + +// 시안 제출 현황 조회 +export const getDraftSubmissions = async (): Promise => { + const response = await api + .get(createApiPath("/api/v1/instructors/dashboards/draft-submissions")) + .json>(); + + return response.result?.commissions ?? []; +}; + +// 매칭 중인 외주 조회 +export const getMatchingCommissions = async (): Promise => { + const response = await api + .get(createApiPath("/api/v1/instructors/dashboards/matchings")) + .json>(); + + return response.result?.commissions ?? []; +}; + +// 수정 중인 외주 조회 +export const getRevisions = async (): Promise => { + const response = await api + .get(createApiPath("/api/v1/instructors/dashboards/revisions")) + .json>(); + + return response.result?.commissions ?? []; +}; diff --git a/src/features/instructor/home/api/homeTypes.ts b/src/features/instructor/home/api/homeTypes.ts new file mode 100644 index 0000000..fed130b --- /dev/null +++ b/src/features/instructor/home/api/homeTypes.ts @@ -0,0 +1,45 @@ +export type DraftSubmissionItem = { + commissionId: number; + title: string; + category: string; + draftSubmission: { + submitted: number; + total: number; + }; + isViewable: boolean; + firstDraftDeadline: string; +}; + +export type MatchingItem = { + commissionId: number; + title: string; + applicationDeadline: string; + matching: { + matched: number; + total: number; + }; +}; + +export type ModifyingItem = { + commissionId: number; + title: string; + isSubmitted: boolean; + hasUpdated: boolean; + finalDeadline: string; +}; + +export const CATEGORY_DISPLAY_MAP: Record = { + FLYER_TEXTBOOK_COVER_INNER: "교재 외지/내지", +}; + +export type GetDraftSubmissionsResult = { + commissions: DraftSubmissionItem[]; +}; + +export type GetMatchingCommissionsResult = { + commissions: MatchingItem[]; +}; + +export type GetRevisionsResult = { + commissions: ModifyingItem[]; +}; diff --git a/src/features/instructor/home/index.ts b/src/features/instructor/home/index.ts index 6eaf5dc..67c722d 100644 --- a/src/features/instructor/home/index.ts +++ b/src/features/instructor/home/index.ts @@ -1,11 +1,7 @@ +export { getDraftSubmissions, getMatchingCommissions, getRevisions } from "./api/home"; +export type { DraftSubmissionItem, MatchingItem, ModifyingItem } from "./api/homeTypes"; +export { CATEGORY_DISPLAY_MAP } from "./api/homeTypes"; export { getDDay } from "./lib/getDDay"; -export type { DraftSubmissionItem, MatchingItem, ModifyingItem } from "./model/home"; -export { - CATEGORY_DISPLAY_MAP, - draftSubmissionStatusData, - matchingStatusData, - modifyingStatusData, -} from "./model/home"; export { default as CommissionsHeader } from "./ui/CommissionsHeader"; export { default as DraftSubmissionStatusRow } from "./ui/DraftSubmissionStatusRow"; export { default as MatchingCommissionsRow } from "./ui/MatchingCommissionsRow"; diff --git a/src/features/instructor/home/model/home.ts b/src/features/instructor/home/model/home.ts deleted file mode 100644 index 247c951..0000000 --- a/src/features/instructor/home/model/home.ts +++ /dev/null @@ -1,144 +0,0 @@ -// [강사] [대시보드 조회] 시안 제출 예정 외주 조회 -export type DraftSubmissionItem = { - commissionId: number; - title: string; - category: string; - draftSubmission: { - submitted: number; - total: number; - }; - firstDraftDeadline: string; -}; - -export const CATEGORY_DISPLAY_MAP: Record = { - FLYER_TEXTBOOK_COVER_INNER: "교재 외지/내지", -}; - -export const draftSubmissionStatusData: DraftSubmissionItem[] = [ - { - commissionId: 11, - title: "해커스톡 왕초보 영어 - 기초 문법편", - category: "FLYER_TEXTBOOK_COVER_INNER", - draftSubmission: { submitted: 4, total: 4 }, - firstDraftDeadline: "2026-06-10", - }, - { - commissionId: 12, - title: "토익 실전 모의고사 - Part 5/6", - category: "FLYER_TEXTBOOK_COVER_INNER", - draftSubmission: { submitted: 3, total: 5 }, - firstDraftDeadline: "2026-06-18", - }, - { - commissionId: 13, - title: "수능 영어 독해 - 빈칸추론 완성", - category: "FLYER_TEXTBOOK_COVER_INNER", - draftSubmission: { submitted: 0, total: 3 }, - firstDraftDeadline: "2026-06-22", - }, - { - commissionId: 14, - title: "중학 수학 개념서 - 1학기 과정", - category: "FLYER_TEXTBOOK_COVER_INNER", - draftSubmission: { submitted: 2, total: 4 }, - firstDraftDeadline: "2026-07-01", - }, - { - commissionId: 15, - title: "고등 국어 문학 - 현대시 집중", - category: "FLYER_TEXTBOOK_COVER_INNER", - draftSubmission: { submitted: 5, total: 5 }, - firstDraftDeadline: "2026-06-28", - }, -]; - -// [강사] [대시보드 조회] 매칭 중인 외주 조회 -export type MatchingItem = { - commissionId: number; - title: string; - finalDeadline: string; - matching: { - matched: number; - total: number; - }; -}; - -export const matchingStatusData: MatchingItem[] = [ - { - commissionId: 34, - title: "중등 과학 탐구 — 물질과 에너지", - matching: { matched: 3, total: 5 }, - finalDeadline: "2026-06-17", - }, - { - commissionId: 35, - title: "고등 수학 II — 미적분 집중 완성", - matching: { matched: 2, total: 5 }, - finalDeadline: "2026-06-23", - }, - { - commissionId: 36, - title: "중등 영어 — 독해 및 문법 완성", - matching: { matched: 3, total: 4 }, - finalDeadline: "2026-07-05", - }, - { - commissionId: 37, - title: "초등 과학 — 생물과 환경 탐구", - matching: { matched: 1, total: 3 }, - finalDeadline: "2026-06-30", - }, - { - commissionId: 38, - title: "고등 물리학 I — 역학과 에너지", - matching: { matched: 4, total: 5 }, - finalDeadline: "2026-07-15", - }, -]; - -// [강사] [대시보드 조회] 수정 중인 외주 조회 -export type ModifyingItem = { - commissionId: number; - title: string; - isSubmitted: boolean; - hasUpdate: boolean; - finalDeadline: string; -}; - -export const modifyingStatusData: ModifyingItem[] = [ - { - commissionId: 42, - title: "중등 수학 — 방정식과 함수 개념서", - isSubmitted: false, - hasUpdate: true, - finalDeadline: "2026-06-20", - }, - { - commissionId: 43, - title: "고등 영어 독해 — 수능 유형별 완성", - isSubmitted: true, - hasUpdate: false, - finalDeadline: "2026-06-28", - }, - { - commissionId: 44, - title: "초등 국어 — 받아쓰기 및 독해 기초", - isSubmitted: false, - hasUpdate: false, - finalDeadline: "2026-07-03", - }, - { - commissionId: 45, - title: "한국사 능력검정 — 중급 핵심 요약", - isSubmitted: false, - hasUpdate: true, - finalDeadline: "2026-07-10", - }, - { - commissionId: 46, - title: "고등 화학 I — 원소와 화학 반응", - isSubmitted: false, - hasUpdate: false, - finalDeadline: "2026-07-18", - }, -]; diff --git a/src/features/instructor/home/ui/DraftSubmissionStatusRow.tsx b/src/features/instructor/home/ui/DraftSubmissionStatusRow.tsx index 8290162..1fe332b 100644 --- a/src/features/instructor/home/ui/DraftSubmissionStatusRow.tsx +++ b/src/features/instructor/home/ui/DraftSubmissionStatusRow.tsx @@ -1,13 +1,16 @@ import { useRouter } from "next/navigation"; +import { + CATEGORY_DISPLAY_MAP, + DraftSubmissionItem, +} from "@/features/instructor/home/api/homeTypes"; import { getDDay } from "@/features/instructor/home/lib/getDDay"; -import { CATEGORY_DISPLAY_MAP, DraftSubmissionItem } from "@/features/instructor/home/model/home"; import { ArrowRightIcon, MatchingOffIcon, MatchingOnIcon } from "@/shared/assets/icons"; import Button from "@/shared/ui/Button"; import Tag from "@/shared/ui/Tag"; const DraftSubmissionStatusRow = ({ item }: { item: DraftSubmissionItem }) => { - const { commissionId, title, category, draftSubmission, firstDraftDeadline } = item; + const { commissionId, title, category, draftSubmission, isViewable, firstDraftDeadline } = item; const { submitted, total } = draftSubmission; const categoryLabel = CATEGORY_DISPLAY_MAP[category] ?? category; const router = useRouter(); @@ -37,7 +40,7 @@ const DraftSubmissionStatusRow = ({ item }: { item: DraftSubmissionItem }) => { ({submitted}/{total})

- {submitted === total ? ( + {isViewable ? ( +
); }; diff --git a/src/widgets/instructor/home/ui/DraftSubmissionStatusSection.tsx b/src/widgets/instructor/home/ui/DraftSubmissionStatusSection.tsx index 4d13e45..724aefc 100644 --- a/src/widgets/instructor/home/ui/DraftSubmissionStatusSection.tsx +++ b/src/widgets/instructor/home/ui/DraftSubmissionStatusSection.tsx @@ -1,9 +1,12 @@ "use client"; +import { useEffect, useState } from "react"; + import { CommissionsHeader, - draftSubmissionStatusData, + type DraftSubmissionItem, DraftSubmissionStatusRow, + getDraftSubmissions, } from "@/features/instructor/home"; import { NextButton, PrevButton } from "@/shared/assets/icons"; import usePagination from "@/shared/lib/hooks/usePagination"; @@ -11,10 +14,14 @@ import PageIndicator from "@/shared/ui/PageIndicator"; import { DRAFT_SUBMISSION_ITEMS_PER_PAGE } from "@/widgets/instructor/home/config/home"; const DraftSubmissionStatusSection = () => { - const { current, totalPages, pageItems, handlePrev, handleNext } = usePagination( - draftSubmissionStatusData, - DRAFT_SUBMISSION_ITEMS_PER_PAGE, - ); + const [items, setItems] = useState([]); + + useEffect(() => { + getDraftSubmissions().then(setItems); + }, []); + + const { current, totalPages, pageItems, handlePrev, handleNext } = + usePagination(items, DRAFT_SUBMISSION_ITEMS_PER_PAGE); return (
@@ -34,11 +41,17 @@ const DraftSubmissionStatusSection = () => { ))}
-
- - - -
+ {pageItems.length === 0 ? ( +
+ 제출된 시안이 없습니다 +
+ ) : ( +
+ + + +
+ )} ); diff --git a/src/widgets/instructor/home/ui/MatchingCommissionsSection.tsx b/src/widgets/instructor/home/ui/MatchingCommissionsSection.tsx index 125a567..3cfbd9f 100644 --- a/src/widgets/instructor/home/ui/MatchingCommissionsSection.tsx +++ b/src/widgets/instructor/home/ui/MatchingCommissionsSection.tsx @@ -1,9 +1,12 @@ "use client"; +import { useEffect, useState } from "react"; + import { CommissionsHeader, - MatchingCommissionsRow as MatchingStatusCommissionsRow, - matchingStatusData, + getMatchingCommissions, + MatchingCommissionsRow, + type MatchingItem, } from "@/features/instructor/home"; import { NextButton, PrevButton } from "@/shared/assets/icons"; import usePagination from "@/shared/lib/hooks/usePagination"; @@ -11,8 +14,14 @@ import PageIndicator from "@/shared/ui/PageIndicator"; import { MATCHING_ITEMS_PER_PAGE } from "@/widgets/instructor/home/config/home"; const MatchingCommissionsSection = () => { - const { current, totalPages, pageItems, handlePrev, handleNext } = usePagination( - matchingStatusData, + const [items, setItems] = useState([]); + + useEffect(() => { + getMatchingCommissions().then(setItems); + }, []); + + const { current, totalPages, pageItems, handlePrev, handleNext } = usePagination( + items, MATCHING_ITEMS_PER_PAGE, ); @@ -29,15 +38,21 @@ const MatchingCommissionsSection = () => {

외주명

{pageItems.map(item => ( - + ))} -
- - - -
+ {pageItems.length === 0 ? ( +
+ 매칭 중인 외주가 없습니다 +
+ ) : ( +
+ + + +
+ )} ); diff --git a/src/widgets/instructor/home/ui/ModifyingCommissionsSection.tsx b/src/widgets/instructor/home/ui/ModifyingCommissionsSection.tsx index 2399a76..ef963a6 100644 --- a/src/widgets/instructor/home/ui/ModifyingCommissionsSection.tsx +++ b/src/widgets/instructor/home/ui/ModifyingCommissionsSection.tsx @@ -1,9 +1,12 @@ "use client"; +import { useEffect, useState } from "react"; + import { CommissionsHeader, + getRevisions, ModifyingCommissionsRow, - modifyingStatusData, + type ModifyingItem, } from "@/features/instructor/home"; import { NextButton, PrevButton } from "@/shared/assets/icons"; import usePagination from "@/shared/lib/hooks/usePagination"; @@ -11,8 +14,14 @@ import PageIndicator from "@/shared/ui/PageIndicator"; import { MODIFYING_ITEMS_PER_PAGE } from "@/widgets/instructor/home/config/home"; const ModifyingCommissionsSection = () => { + const [items, setItems] = useState([]); + + useEffect(() => { + getRevisions().then(setItems); + }, []); + const { current, totalPages, pageItems, handlePrev, handleNext } = usePagination( - modifyingStatusData, + items, MODIFYING_ITEMS_PER_PAGE, ); @@ -33,11 +42,17 @@ const ModifyingCommissionsSection = () => { ))} -
- - - -
+ {pageItems.length === 0 ? ( +
+ 진행중인 외주가 없습니다 +
+ ) : ( +
+ + + +
+ )} ); diff --git a/src/widgets/instructor/my/model/my.ts b/src/widgets/instructor/my/model/my.ts deleted file mode 100644 index f4c428a..0000000 --- a/src/widgets/instructor/my/model/my.ts +++ /dev/null @@ -1,18 +0,0 @@ -// [강사] 마이페이지 본인 정보 + 통계 조회 -export type MyInfo = { - name: string; - profileImageUrl: string; - stats: { - totalCommissionCount: number; - ongoingCommissionCount: number; - }; -}; - -export const myInfoData: MyInfo = { - name: "고다현", - profileImageUrl: "", - stats: { - totalCommissionCount: 5, - ongoingCommissionCount: 5, - }, -}; diff --git a/src/widgets/instructor/my/ui/MyInfoSection.tsx b/src/widgets/instructor/my/ui/MyInfoSection.tsx index b80fbae..aa0b033 100644 --- a/src/widgets/instructor/my/ui/MyInfoSection.tsx +++ b/src/widgets/instructor/my/ui/MyInfoSection.tsx @@ -1,13 +1,30 @@ +import Image from "next/image"; + +import { myInfoData } from "@/features/instructor/my/model/myMock"; import { ProfileCircleIcon } from "@/shared/assets/icons"; -import { myInfoData } from "@/widgets/instructor/my/model/my"; -const MyInfoSection = () => { - const { name, stats } = myInfoData; +interface MyInfoSectionProps { + name: string; + profileImageUrl?: string; +} + +const MyInfoSection = ({ name, profileImageUrl }: MyInfoSectionProps) => { + const { stats } = myInfoData; return (
- + {profileImageUrl != null ? ( + 프로필 + ) : ( + + )}

{name}

diff --git a/src/widgets/instructor/revision/model/revision.ts b/src/widgets/instructor/revision/model/revisionMock.ts similarity index 98% rename from src/widgets/instructor/revision/model/revision.ts rename to src/widgets/instructor/revision/model/revisionMock.ts index 768542d..db6767b 100644 --- a/src/widgets/instructor/revision/model/revision.ts +++ b/src/widgets/instructor/revision/model/revisionMock.ts @@ -13,7 +13,7 @@ export type DraftRevisionDetail = { export const draftRevisionDetailData: DraftRevisionDetail[] = [ { - commissionId: 42, + commissionId: 6, title: "중등 수학 — 방정식과 함수 개념서", currentDraft: { draftId: 88, @@ -69,7 +69,7 @@ export type DraftFiles = { export const draftFilesData: DraftFiles[] = [ { - commissionId: 42, + commissionId: 6, draftId: 88, fileUrls: [ "/images/thumbnail_mock.jpg", diff --git a/src/widgets/instructor/revision/ui/RevisionCategorySection.tsx b/src/widgets/instructor/revision/ui/RevisionCategorySection.tsx index 8c846df..2502fb8 100644 --- a/src/widgets/instructor/revision/ui/RevisionCategorySection.tsx +++ b/src/widgets/instructor/revision/ui/RevisionCategorySection.tsx @@ -39,9 +39,14 @@ const RevisionCategorySection = ({ /{maxRevisionCount}) {remainingRevisionCount === 0 && ( - + )}

시안 수정은 총 3회 수정이 가능합니다.

diff --git a/src/widgets/instructor/write/ui/PlanChooseSection.tsx b/src/widgets/instructor/write/ui/PlanChooseSection.tsx index 43840d7..446ca28 100644 --- a/src/widgets/instructor/write/ui/PlanChooseSection.tsx +++ b/src/widgets/instructor/write/ui/PlanChooseSection.tsx @@ -1,11 +1,21 @@ "use client"; -import { PlanChooseCard, type PlanType, useWriteFormStore } from "@/features/instructor/write"; +import { useEffect, useState } from "react"; -const PLANS: PlanType[] = ["기본", "플러스", "맥스"]; +import { + getPlans, + type Plan, + PlanChooseCard, + useWriteFormStore, +} from "@/features/instructor/write"; const PlanChooseSection = () => { const { selectedPlan, setSelectedPlan } = useWriteFormStore(); + const [plans, setPlans] = useState([]); + + useEffect(() => { + getPlans().then(setPlans).catch(console.error); + }, []); return (
@@ -16,11 +26,11 @@ const PlanChooseSection = () => {
- {PLANS.map(plan => ( + {plans.map(plan => ( setSelectedPlan(plan)} /> ))} diff --git a/src/widgets/signup/ui/SignupFunnel.tsx b/src/widgets/signup/ui/SignupFunnel.tsx index f7efa37..8663c44 100644 --- a/src/widgets/signup/ui/SignupFunnel.tsx +++ b/src/widgets/signup/ui/SignupFunnel.tsx @@ -8,10 +8,10 @@ import { DESIGNER_TERMS, DesignerAdditionalStep, INSTRUCTOR_TERMS, + postSignupDesigner, SIGNUP_INITIAL_STEP, SIGNUP_STEPS_BY_ROLE, type SignupAccountData, - signupDesigner, type SignupDesignerAdditionalData, type SignupFunnelStep, type SignupProfileData, @@ -89,7 +89,7 @@ const SignupFunnel = () => { setDesignerAdditionalData(data); - const result = await signupDesigner({ + const result = await postSignupDesigner({ profile: profileData, account: accountData, additional: data,