shows error message when request req fails

This commit is contained in:
ajaythapliyal
2023-02-22 10:02:05 +05:30
parent 41742dccd3
commit 1fc9d61325
6 changed files with 41 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
export type MESSAGE_TYPE = 'QUESTION' | 'ANSWER';
export type MESSAGE_TYPE = 'QUESTION' | 'ANSWER' | 'ERROR';
export type Status = 'idle' | 'loading' | 'failed';
export interface Message {