add new hooks for fetching QuizCRQuestions and categories, update related components to use the new hooks, and refactor SelectCategory page to use the new API
```
This commit is contained in:
louiscklaw
2025-05-12 19:24:25 +08:00
parent 650127821b
commit a6170778cd
9 changed files with 186 additions and 66 deletions

View File

@@ -5,7 +5,9 @@ interface IConnectivesRevisionCategory {
test_i: number;
cat_info: string;
cat_name: string;
content: IConnectivesRevisionQuestion[] | [];
content?: IConnectivesRevisionQuestion[] | [];
//
id: string;
}
export default IConnectivesRevisionCategory;