diff --git a/.vscode/settings.json b/.vscode/settings.json index c5afc714..1deae116 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -56,6 +56,7 @@ "Provia", "pushstate", "qaub", + "Qrcode", "QRSTUVWXYZ", "ratelimit", "ratelimiter", diff --git a/README.md b/README.md index 67de898d..934dac19 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ Create Upstash Redis store from storage tab of Vercel dashboard and link to your - `NEXT_PUBLIC_GEO_PRIVACY = 1` disables collection/display of location-based data (⚠️ re-compresses uploaded images in order to remove GPS information) - `NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS = 1` enables public photo downloads for all visitors (⚠️ may result in increased bandwidth usage) - `NEXT_PUBLIC_SOCIAL_NETWORKS` - - Comma-separated list of social networks and sharing options to show in share modal + - Comma-separated list of share modal options - Accepted values: - `x` (default) - `threads` diff --git a/src/admin/config/AdminAppConfigurationClient.tsx b/src/admin/config/AdminAppConfigurationClient.tsx index 0baa8289..cc7d1b98 100644 --- a/src/admin/config/AdminAppConfigurationClient.tsx +++ b/src/admin/config/AdminAppConfigurationClient.tsx @@ -912,14 +912,14 @@ export default function AdminAppConfigurationClient({ {renderEnvVars(['NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS'])} {renderOrderedKeyList(socialKeys, SOCIAL_KEYS)}
- Configure order and visibility of social networks and sharing - options (seen in share modal) by storing comma-separated values + Configure order and visibility of share modal + options by storing comma-separated values (accepts {'"all"'} or {'"none"'}, defaults to {renderCommaSeparatedList(DEFAULT_SOCIAL_KEYS)})
diff --git a/src/share/ShareModal.tsx b/src/share/ShareModal.tsx index 23896e85..a3ccf8dd 100644 --- a/src/share/ShareModal.tsx +++ b/src/share/ShareModal.tsx @@ -10,7 +10,7 @@ import { toastSuccess } from '@/toast'; import { SOCIAL_NETWORKS } from '@/app/config'; import { useAppState } from '@/app/AppState'; import useOnPathChange from '@/utility/useOnPathChange'; -import { IoArrowUp } from 'react-icons/io5'; +import { IoArrowUp, IoCloseSharp } from 'react-icons/io5'; import MaskedScroll from '@/components/MaskedScroll'; import { useAppText } from '@/i18n/state/client'; import SocialButton from '@/social/SocialButton'; @@ -97,7 +97,7 @@ export default function ShareModal({ ) : (
key === 'qrcode' ? ( renderButton( - , + showQR ? : , () => setShowQR(q => !q), false, appText.tooltip.shareQRCode,