Рефакторинг получения записей и медиа. Все нужные корректировки в зависимый код внесены

This commit is contained in:
ifraimka committed 2024-11-08 13:14:50 +03:00
1 parent 1c5ace468a
commit b07b5ee57e
10 files changed
+69 -99

No files matched your search

+4 -3
View File
@@ -10,15 +10,15 @@ import './Footer.styles.scss';
const mockLinks = {
ictis: {
image: iconIctis,
src: iconIctis,
to: "https://ictis.sfedu.ru",
},
sfedu: {
image: iconSfedu,
src: iconSfedu,
to: "https://sfedu.ru",
},
vk: {
image: iconVK,
src: iconVK,
to: "https://vk.com/skbkit",
},
};
@@ -36,6 +36,7 @@ function Footer({ links = mockLinks, contacts = mockContacts }) {
const loadData = async () => {
const newMediaList = await getMedia('footer', mediaList);
setMediaList(newMediaList);
console.log('footerMedia', newMediaList);
};
loadData();
}, []);