From ee47d3b8beb376b24df0bb0da303247b132523d8 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 30 Sep 2025 20:15:26 +0000 Subject: [PATCH] Fix copy link for Neighbor Sum Avoidance --- src/components/NeighborSumAvoidance.tsx | 5 +++-- src/pages/theme-pages/discrete-math/Graphs.tsx | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/NeighborSumAvoidance.tsx b/src/components/NeighborSumAvoidance.tsx index 6aee214..1defb8e 100644 --- a/src/components/NeighborSumAvoidance.tsx +++ b/src/components/NeighborSumAvoidance.tsx @@ -11,9 +11,10 @@ import SocialShare from '@/components/SocialShare'; interface NeighborSumAvoidanceProps { showSocialShare?: boolean; + shareUrl?: string; } -const NeighborSumAvoidance = ({ showSocialShare = false }: NeighborSumAvoidanceProps) => { +const NeighborSumAvoidance = ({ showSocialShare = false, shareUrl }: NeighborSumAvoidanceProps) => { const [numberCount, setNumberCount] = useState(9); const [mode, setMode] = useState<'default' | 'guided'>('default'); const [isActive, setIsActive] = useState(false); @@ -383,7 +384,7 @@ const NeighborSumAvoidance = ({ showSocialShare = false }: NeighborSumAvoidanceP {showSocialShare && (