Fix social network key display
This commit is contained in:
parent
bcecebe936
commit
8482a76dd6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
)}
|
||||
</div>
|
||||
{SOCIAL_KEYS.map(key =>
|
||||
{SOCIAL_NETWORKS.map(key =>
|
||||
<SocialButton
|
||||
key={key}
|
||||
socialKey={key}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user