CFE-2 delete data in answer
This commit is contained in:
@@ -49,22 +49,7 @@ export const AnswersProvider = ({ children }) => {
|
|||||||
categoryLists: [],
|
categoryLists: [],
|
||||||
subCategoryLists: [],
|
subCategoryLists: [],
|
||||||
});
|
});
|
||||||
const [state, dispatch] = useReducer(reducer, [
|
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,
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
requestServer(GET_CATEGORY, "get")
|
requestServer(GET_CATEGORY, "get")
|
||||||
|
|||||||
Reference in New Issue
Block a user