Fix social network key display

This commit is contained in:
Sam Becker 2025-09-21 11:04:56 -05:00
parent bcecebe936
commit 8482a76dd6
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ import {
} from 'react'; } from 'react';
import ChecklistRow from '@/components/ChecklistRow'; import ChecklistRow from '@/components/ChecklistRow';
import ChecklistGroup from '@/components/ChecklistGroup'; import ChecklistGroup from '@/components/ChecklistGroup';
import { AppConfiguration, SOCIAL_KEYS } from '@/app/config'; import { AppConfiguration } from '@/app/config';
import StatusIcon from '@/components/StatusIcon'; import StatusIcon from '@/components/StatusIcon';
import { labelForStorage } from '@/platforms/storage'; import { labelForStorage } from '@/platforms/storage';
import { testConnectionsAction } from '@/admin/actions'; import { testConnectionsAction } from '@/admin/actions';
@ -33,7 +33,7 @@ import {
import ColorDot from '@/photo/color/ColorDot'; import ColorDot from '@/photo/color/ColorDot';
import { Oklch } from '@/photo/color/client'; import { Oklch } from '@/photo/color/client';
import { getOrderedKeyListStatus } from '@/utility/key'; import { getOrderedKeyListStatus } from '@/utility/key';
import { DEFAULT_SOCIAL_KEYS } from '@/social'; import { DEFAULT_SOCIAL_KEYS, SOCIAL_KEYS } from '@/social';
export default function AdminAppConfigurationClient({ export default function AdminAppConfigurationClient({
// Storage // Storage

View File

@ -359,7 +359,7 @@ export const GEO_PRIVACY_ENABLED =
process.env.NEXT_PUBLIC_GEO_PRIVACY === '1'; process.env.NEXT_PUBLIC_GEO_PRIVACY === '1';
export const ALLOW_PUBLIC_DOWNLOADS = export const ALLOW_PUBLIC_DOWNLOADS =
process.env.NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS === '1'; process.env.NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS === '1';
export const SOCIAL_KEYS = parseSocialKeysFromString( export const SOCIAL_NETWORKS = parseSocialKeysFromString(
// Legacy environment variable // Legacy environment variable
process.env.NEXT_PUBLIC_HIDE_SOCIAL === '1' process.env.NEXT_PUBLIC_HIDE_SOCIAL === '1'
? 'none' ? 'none'
@ -486,7 +486,7 @@ export const APP_CONFIGURATION = {
isGeoPrivacyEnabled: GEO_PRIVACY_ENABLED, isGeoPrivacyEnabled: GEO_PRIVACY_ENABLED,
arePublicDownloadsEnabled: ALLOW_PUBLIC_DOWNLOADS, arePublicDownloadsEnabled: ALLOW_PUBLIC_DOWNLOADS,
hasSocialKeys: Boolean(process.env.NEXT_PUBLIC_SOCIAL_NETWORKS), hasSocialKeys: Boolean(process.env.NEXT_PUBLIC_SOCIAL_NETWORKS),
socialKeys: SOCIAL_KEYS, socialKeys: SOCIAL_NETWORKS,
areSiteFeedsEnabled: SITE_FEEDS_ENABLED, areSiteFeedsEnabled: SITE_FEEDS_ENABLED,
isOgTextBottomAligned: OG_TEXT_BOTTOM_ALIGNMENT, isOgTextBottomAligned: OG_TEXT_BOTTOM_ALIGNMENT,
// Internal // Internal

View File

@ -7,7 +7,7 @@ import { BiCopy } from 'react-icons/bi';
import { ReactNode, useEffect } from 'react'; import { ReactNode, useEffect } from 'react';
import { shortenUrl } from '@/utility/url'; import { shortenUrl } from '@/utility/url';
import { toastSuccess } from '@/toast'; import { toastSuccess } from '@/toast';
import { SOCIAL_KEYS } from '@/app/config'; import { SOCIAL_NETWORKS } from '@/app/config';
import { useAppState } from '@/app/AppState'; import { useAppState } from '@/app/AppState';
import useOnPathChange from '@/utility/useOnPathChange'; import useOnPathChange from '@/utility/useOnPathChange';
import { IoArrowUp } from 'react-icons/io5'; import { IoArrowUp } from 'react-icons/io5';
@ -114,7 +114,7 @@ export default function ShareModal({
appText.tooltip.shareCopy, appText.tooltip.shareCopy,
)} )}
</div> </div>
{SOCIAL_KEYS.map(key => {SOCIAL_NETWORKS.map(key =>
<SocialButton <SocialButton
key={key} key={key}
socialKey={key} socialKey={key}