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, SetLoader,
"PUT", "PUT",
item._id, 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]} item={data[editIndex]}
/> />
) : null} ) : null}
{/* eslint-disable-next-line */} {/* eslint-disable-next-line */}
{data.map((e, i, array) => { {data.map((e, i, array) => {
try { try {

View File

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

View File

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

View File

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