diff --git a/src/admin/config/AdminAppConfigurationClient.tsx b/src/admin/config/AdminAppConfigurationClient.tsx index 4da3ffcf..4ce194da 100644 --- a/src/admin/config/AdminAppConfigurationClient.tsx +++ b/src/admin/config/AdminAppConfigurationClient.tsx @@ -10,7 +10,7 @@ import { } from 'react'; import ChecklistRow from '@/components/ChecklistRow'; import ChecklistGroup from '@/components/ChecklistGroup'; -import { AppConfiguration, SOCIAL_KEYS } from '@/app/config'; +import { AppConfiguration } from '@/app/config'; import StatusIcon from '@/components/StatusIcon'; import { labelForStorage } from '@/platforms/storage'; import { testConnectionsAction } from '@/admin/actions'; @@ -33,7 +33,7 @@ import { import ColorDot from '@/photo/color/ColorDot'; import { Oklch } from '@/photo/color/client'; import { getOrderedKeyListStatus } from '@/utility/key'; -import { DEFAULT_SOCIAL_KEYS } from '@/social'; +import { DEFAULT_SOCIAL_KEYS, SOCIAL_KEYS } from '@/social'; export default function AdminAppConfigurationClient({ // Storage diff --git a/src/app/config.ts b/src/app/config.ts index fd7e4306..0dab88bb 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -359,7 +359,7 @@ export const GEO_PRIVACY_ENABLED = process.env.NEXT_PUBLIC_GEO_PRIVACY === '1'; export const ALLOW_PUBLIC_DOWNLOADS = process.env.NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS === '1'; -export const SOCIAL_KEYS = parseSocialKeysFromString( +export const SOCIAL_NETWORKS = parseSocialKeysFromString( // Legacy environment variable process.env.NEXT_PUBLIC_HIDE_SOCIAL === '1' ? 'none' @@ -486,7 +486,7 @@ export const APP_CONFIGURATION = { isGeoPrivacyEnabled: GEO_PRIVACY_ENABLED, arePublicDownloadsEnabled: ALLOW_PUBLIC_DOWNLOADS, hasSocialKeys: Boolean(process.env.NEXT_PUBLIC_SOCIAL_NETWORKS), - socialKeys: SOCIAL_KEYS, + socialKeys: SOCIAL_NETWORKS, areSiteFeedsEnabled: SITE_FEEDS_ENABLED, isOgTextBottomAligned: OG_TEXT_BOTTOM_ALIGNMENT, // Internal diff --git a/src/share/ShareModal.tsx b/src/share/ShareModal.tsx index d28f5570..95ea251b 100644 --- a/src/share/ShareModal.tsx +++ b/src/share/ShareModal.tsx @@ -7,7 +7,7 @@ import { BiCopy } from 'react-icons/bi'; import { ReactNode, useEffect } from 'react'; import { shortenUrl } from '@/utility/url'; import { toastSuccess } from '@/toast'; -import { SOCIAL_KEYS } from '@/app/config'; +import { SOCIAL_NETWORKS } from '@/app/config'; import { useAppState } from '@/app/AppState'; import useOnPathChange from '@/utility/useOnPathChange'; import { IoArrowUp } from 'react-icons/io5'; @@ -114,7 +114,7 @@ export default function ShareModal({ appText.tooltip.shareCopy, )} - {SOCIAL_KEYS.map(key => + {SOCIAL_NETWORKS.map(key =>