fixed description css

This commit is contained in:
Hope87
2021-07-21 14:40:06 +03:00
parent bccc5f98dc
commit f42f7a9f71
8 changed files with 60 additions and 48 deletions

View File

@ -1,32 +1,40 @@
export const fetchProfile = async (link, index) => {
const response = await fetch(`${link}${index}`);
let data = await response.json();
try {
const response = await fetch(`${link}${index}`);
let data = await response.json();
return data;
return data;
} catch (error) {}
};
export const fetchSkills = async (link) => {
const response = await fetch(link);
let data = await response.json();
try {
const response = await fetch(link);
let data = await response.json();
return data;
return data;
} catch (error) {}
};
export const fetchItemsForId = async (link, id) => {
const response = await fetch(`${link}${id}`);
let data = await response.json();
try {
const response = await fetch(`${link}${id}`);
let data = await response.json();
return data;
return data;
} catch (error) {}
};
export const fetchForm = async (link, info) => {
const response = await fetch(link, {
method: 'POST',
headers: {
'Content-Type': 'multipart/form-data',
},
body: info,
});
try {
const response = await fetch(link, {
method: 'POST',
headers: {
'Content-Type': 'multipart/form-data',
},
body: info,
});
return response;
return response;
} catch (error) {}
};