Browse Source

add dashboardBasePath

visuddhinanda 2 năm trước cách đây
mục cha
commit
d353c5e30a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      dashboard/src/components/invite/InviteCreate.tsx

+ 3 - 0
dashboard/src/components/invite/InviteCreate.tsx

@@ -9,11 +9,13 @@ import { post } from "../../request";
 import { useRef } from "react";
 import { IInviteData } from "../../pages/studio/invite/list";
 import LangSelect from "../general/LangSelect";
+import { dashboardBasePath } from "../../utils";
 
 interface IInviteRequest {
   email: string;
   lang: string;
   studio: string;
+  dashboard?: string;
 }
 interface IInviteResponse {
   ok: boolean;
@@ -45,6 +47,7 @@ const InviteCreateWidget = ({ studio, onCreate }: IWidget) => {
           email: values.email,
           lang: values.lang,
           studio: studio,
+          dashboard: dashboardBasePath(),
         });
         console.log(res);
         if (res.ok) {