This commit is contained in:
Daniel 2022-06-24 11:26:58 +04:30
parent 6e27ed574f
commit 36c7cbd726
5 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,8 @@ const EditItem = ({
SetLoader,
"PUT",
item._id,
item.title
item.title,
item.date
);
}

View File

@ -43,6 +43,7 @@ const List = ({ data, tags, collections, reFetch, SetLoader, lightMode }) => {
item={data[editIndex]}
/>
) : null}
{/* eslint-disable-next-line */}
{data.map((e, i, array) => {
try {

View File

@ -12,10 +12,8 @@ const addItem = async (
method,
id = nanoid(),
title = "",
date = new Date()
date = new Date().toString()
) => {
const dateCreated = date.toString();
function isValidHttpUrl(string) {
let url;
@ -38,7 +36,7 @@ const addItem = async (
link: link,
tag: tag,
collection: collection,
date: dateCreated,
date: date,
}),
headers: {
"Content-type": "application/json; charset=UTF-8",

View File

@ -174,7 +174,6 @@
.delete {
margin-top: 20px;
margin-left: 10px;
display: inline;
font-size: 1.1rem;
width: 40px;
height: 40px;

View File

@ -23,6 +23,7 @@
left: 0;
bottom: 0;
width: 100vw;
z-index: 1;
}
.send-box {