fixed types
Some checks failed
Some checks failed
This commit is contained in:
@@ -2,7 +2,7 @@ import type { NetworkEnum, TokenEnum } from "@/model/NetworkEnum";
|
||||
|
||||
export const imagesPath = import.meta.glob<string>('@/assets/*.{png,svg}', { eager: true, query: '?url', import: 'default' });
|
||||
|
||||
export const getNetworkImage = (networkName: NetworkEnum): string => {
|
||||
export const getNetworkImage = (networkName: string): string => {
|
||||
const path = Object.keys(imagesPath).find((key) =>
|
||||
key.endsWith(`${networkName.toLowerCase()}.svg`)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user