From 6127a5ecc4a9f94a38b54c2202c613978b37ad7d Mon Sep 17 00:00:00 2001 From: gwansikk Date: Sat, 20 Jan 2024 23:37:22 +0900 Subject: [PATCH] feat(theme): add npm icon --- docs/reference/default-theme-config.md | 1 + src/client/theme-default/support/socialIcons.ts | 1 + types/default-theme.d.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/reference/default-theme-config.md b/docs/reference/default-theme-config.md index 980fa0aa..f41fb7ad 100644 --- a/docs/reference/default-theme-config.md +++ b/docs/reference/default-theme-config.md @@ -244,6 +244,7 @@ type SocialLinkIcon = | 'instagram' | 'linkedin' | 'mastodon' + | 'npm' | 'slack' | 'twitter' | 'x' diff --git a/src/client/theme-default/support/socialIcons.ts b/src/client/theme-default/support/socialIcons.ts index df427040..18c4bf8c 100644 --- a/src/client/theme-default/support/socialIcons.ts +++ b/src/client/theme-default/support/socialIcons.ts @@ -12,6 +12,7 @@ export const icons = { 'LinkedIn', mastodon: 'Mastodon', + npm: 'npm', slack: 'Slack', twitter: diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts index fc8d4343..d6636643 100644 --- a/types/default-theme.d.ts +++ b/types/default-theme.d.ts @@ -334,6 +334,7 @@ export namespace DefaultTheme { | 'instagram' | 'linkedin' | 'mastodon' + | 'npm' | 'slack' | 'twitter' | 'x'