Quellcode durchsuchen

add TCourseRole

visuddhinanda vor 2 Jahren
Ursprung
Commit
bb0a124892
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      dashboard/src/reducers/course-user.ts

+ 3 - 2
dashboard/src/reducers/course-user.ts

@@ -1,6 +1,7 @@
 import { createSlice, PayloadAction } from "@reduxjs/toolkit";
 
 import type { RootState } from "../store";
+import { TCourseRole } from "../components/api/Course";
 
 export const ROLE_ROOT = "root";
 export const ROLE_ASSISTANT = "assistant";
@@ -23,8 +24,8 @@ const remove = () => {
 };
 
 export interface ICourseUser {
-  channelId: string;
-  role: string;
+  channelId?: string | null;
+  role: TCourseRole;
 }
 
 interface IState {