work on caller history part of widget and making fake data and work on that

This commit is contained in:
2023-10-23 16:00:58 +03:30
parent 0f06c0343f
commit 0f6efe7ec1
11 changed files with 207 additions and 82 deletions

View File

@@ -21,9 +21,38 @@ const useCallerHistory = (id) => {
});
return {
historyList: data,
isLoadingHistoryList: isLoading,
errorHistoryList: !data
historyList: [
{
id: 1,
operator_name: "اشکان خطیبی",
answer_date: "1379/02/03 13:50",
topic: "موضوع تست",
sub_topic: "زیر موضوع تست با متن طولانی تر از موضوع"
},
{
id: 2,
operator_name: "مصیب خطیبی",
answer_date: "1385/01/23 23:10",
topic: "موضوع تست2",
sub_topic: "زیر موضوع تست با متن طولانی تر از موضوع2"
},
{
id: 2,
operator_name: "علی جلالی",
answer_date: "1385/01/01 12:12",
topic: "موضوع تست23",
sub_topic: "زیر 22موضوع تست با متن طولانی تر از موضوع32"
},
{
id: 2,
operator_name: "حسن محمودی",
answer_date: "1385/01/01 11:22",
topic: "موضوع اول",
sub_topic: "زیر دوم تست با متن طولانی تر از موضوع32"
}
],
isLoadingHistoryList: false,
errorHistoryList: false
}
};