fixed description css
This commit is contained in:
@ -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) {}
|
||||
};
|
||||
|
Reference in New Issue
Block a user