Explorar o código

Role -> TRole

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
3faaa57ddf
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      dashboard/src/components/share/Share.tsx

+ 3 - 3
dashboard/src/components/share/Share.tsx

@@ -3,12 +3,12 @@ import { Divider, List, message, Select } from "antd";
 import { useState } from "react";
 import { useIntl } from "react-intl";
 import { get, post } from "../../request";
-import { IUserApiData, IUserListResponse, Role } from "../api/Auth";
+import { IUserApiData, IUserListResponse, TRole } from "../api/Auth";
 import { IShareData, IShareRequest, IShareResponse } from "../api/Share";
 
 interface IShareUserList {
   user: IUserApiData;
-  role: Role;
+  role: TRole;
 }
 interface IWidget {
   resId: string;
@@ -21,7 +21,7 @@ const Widget = ({ resId, resType }: IWidget) => {
   interface IFormData {
     userId: string;
     userType: string;
-    role: Role;
+    role: TRole;
   }
   return (
     <div>