Refactor Grid and List components by removing debug logging for color and theme

This commit is contained in:
sHa
2025-05-02 10:51:34 +03:00
parent 446eeabcb3
commit 22c8482740
2 changed files with 0 additions and 13 deletions

View File

@@ -28,7 +28,6 @@
export let theme;
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
// Improved debug logging for color and theme for each logo
$: {
if (logos && logos.length) {
logos.forEach(logo => {
@@ -40,17 +39,6 @@ $: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
});
}
}
// Inline SVG logic for color switching
let svgCache = {};
async function fetchInlineSvg(path) {
if (svgCache[path]) return svgCache[path];
const res = await fetch(path);
const text = await res.text();
svgCache[path] = text;
return text;
}
</script>
<Preview show={showModal} logo={selectedLogo} theme={theme} on:close={closeModal} />

View File

@@ -50,7 +50,6 @@
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
// Debug logging for color and theme
$: {
if (logos && logos.length) {
logos.forEach(logo => {