mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-26 21:19:04 +08:00
fix(wordmark): image url is wrong
Some checks failed
Trigger Cloudflare Pages Build / cron_job (push) Has been cancelled
Some checks failed
Trigger Cloudflare Pages Build / cron_job (push) Has been cancelled
This commit is contained in:
@@ -317,8 +317,7 @@ export function IconDetails({ icon, iconData, authorData, allIcons }: IconDetail
|
|||||||
}
|
}
|
||||||
|
|
||||||
const renderVariant = (format: string, iconName: string, theme?: "light" | "dark") => {
|
const renderVariant = (format: string, iconName: string, theme?: "light" | "dark") => {
|
||||||
const variantName = theme && iconColorVariants?.[theme] ? iconColorVariants[theme] : iconName
|
const imageUrl = `${BASE_URL}/${format}/${iconName}.${format}`
|
||||||
const imageUrl = `${BASE_URL}/${format}/${variantName}.${format}`
|
|
||||||
const githubUrl = `${REPO_PATH}/tree/main/${format}/${iconName}.${format}`
|
const githubUrl = `${REPO_PATH}/tree/main/${format}/${iconName}.${format}`
|
||||||
const variantKey = `${format}-${theme || "default"}`
|
const variantKey = `${format}-${theme || "default"}`
|
||||||
const isCopied = copiedVariants[variantKey] || false
|
const isCopied = copiedVariants[variantKey] || false
|
||||||
|
|||||||
Reference in New Issue
Block a user