CFE-2 delete data in answer
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user