diff --git a/src/app/services/classes.service.ts b/src/app/services/classes.service.ts index cb99414..1802afa 100644 --- a/src/app/services/classes.service.ts +++ b/src/app/services/classes.service.ts @@ -1,4 +1,5 @@ import { API_URLS } from "../constants/apiUrl.constant"; +import { Class } from "../interface/class"; import { axiosInstance } from "../lib/axios"; const getAll = () => axiosInstance.get(API_URLS.class.all); diff --git a/src/app/stores/classStore.ts b/src/app/stores/classStore.ts index 8b5c228..dab3646 100644 --- a/src/app/stores/classStore.ts +++ b/src/app/stores/classStore.ts @@ -1,5 +1,6 @@ import { create } from "zustand"; import { classesService } from "../services/classes.service"; +import { Class } from "../interface/class"; type ClassStoreState = { classes: Class[];