mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:09:45 +00:00
Рефакторинг получения записей и медиа. Все нужные корректировки в зависимый код внесены
This commit is contained in:
1 parent
1c5ace468a
commit
b07b5ee57e
10 files changed
+69
-99
No files matched your search
@@ -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();
|
||||
}, []);
|
||||
|
||||
Reference in new issue
Block a user