🧹 Clean comments.

This commit is contained in:
pheralb 2023-12-16 20:11:19 +00:00
parent 49a5ba6794
commit 2b5e43cfb5

View File

@ -2,12 +2,10 @@ import type { iSVG } from '@/types/svg';
import { svgs } from './svgs';
import { getBaseUrl } from '@/utils/getBaseUrl';
// Add id on top of each svg:
export const svgsData = svgs.map((svg: iSVG, index: number) => {
return { id: index, ...svg };
});
// Add full route of each svg, checking if theme support is added:
export const fullRouteSvgsData: iSVG[] = svgsData.map((svg) => {
const url = getBaseUrl();
if (typeof svg.route === 'object' && svg.route !== null) {