-
Notifications
You must be signed in to change notification settings - Fork 0
/
delete.txt
64 lines (56 loc) · 2.17 KB
/
delete.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// const [data, setData] = useState(
// [
// {
// title: 'Feed12backs',
// body: "Lorem ipsum dolor sit amet consectetur",
// editIcon: editIcon,
// deleteIcon: deleteIcon,
// date: "5 days ago"
// },
// {
// title: 'Feedbacks',
// body: "Lorem ipsum dolor sit amet consectetur",
// editIcon: editIcon,
// deleteIcon: deleteIcon,
// date: "5 days ago"
// }, {
// title: 'Feedbacks',
// body: "Lorem ipsum dolor sit amet consectetur",
// editIcon: editIcon,
// deleteIcon: deleteIcon,
// date: "5 days ago"
// }, {
// title: 'Feedbacks',
// body: "Lorem ipsum dolor sit amet consectetur",
// editIcon: editIcon,
// deleteIcon: deleteIcon,
// date: "5 days ago"
// },
// ])
// const dispatch = useDispatch();
// const getData=async()=>{
// let res=await axios.get('http://localhost:8000/getData/[email protected]');
// console.log(res.data.cardData);
// setVal(res.data.cardData)
// }
// const notesData = useSelector((store) => store.notesData.cardDetails);
// console.log(notesData);
// dispatch(postData(newDataVal));
// dispatch(getCardDetails());
// dispatch(add(newDataVal))
// const sendObj={
// email:"[email protected]",
// heading:"sports13",
// content:"India win second test match against SA",
// date:"25-12-2023"
// }
// await axios.post("http://localhost:8000/saveData",sendObj)
// setData(newDataVal);
// SetTitle('');
// SetBody('');
//
// editIndex: editIndex
// setData(edit(newEditVal));
// console.log(newEditVal);
// dispatch(edit(newEditVal))
// console.log("enter into edit content");