perf: major widget refactoring

This commit is contained in:
David Ralph
2022-10-30 16:43:08 +00:00
parent d762a7c504
commit a9276a5fdb
15 changed files with 236 additions and 395 deletions

View File

@@ -119,25 +119,6 @@ export default function PhotoInformation({ info, url, api }) {
);
}
/*const downloadEnabled =
localStorage.getItem('downloadbtn') === 'true' && !info.offline && !info.photographerURL && api;
const downloadBackground = () => {
if (downloadEnabled) {
downloadImage(info);
}
};
const showBackgroundInformation = () => {
const element = document.querySelector('.infoCard');
if (element) {
if (element.style.display === 'none' || element.style.display === '') {
element.style.display = 'block';
} else {
element.style.display = 'none';
}
}
};*/
let showingPhotoMap = false;
const photoMap = () => {
if (