CFE-2 delete data in answer

This commit is contained in:
2023-10-29 16:01:39 +03:30
parent 32a3ed707b
commit c598d82ed0

View File

@@ -49,22 +49,7 @@ export const AnswersProvider = ({ children }) => {
categoryLists: [],
subCategoryLists: [],
});
const [state, dispatch] = useReducer(reducer, [
{
id: 1,
phone_number: "09134849737",
date: new Date(),
active: true,
active_category_id: 1,
},
{
id: 2,
phone_number: "09134849737",
date: new Date(),
active: false,
active_category_id: 2,
},
]);
const [state, dispatch] = useReducer(reducer, []);
useEffect(() => {
requestServer(GET_CATEGORY, "get")