Fix copy link for Neighbor Sum Avoidance
This commit is contained in:
parent
d2de5581b6
commit
ee47d3b8be
2 changed files with 8 additions and 4 deletions
|
|
@ -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 && (
|
||||
<div className="mt-8">
|
||||
<SocialShare
|
||||
url={window.location.href}
|
||||
url={shareUrl || window.location.href}
|
||||
title="Neighbor Sum Avoidance - Interactive Graph Puzzle"
|
||||
description="Can you arrange numbers 1-9 in a circle avoiding forbidden sums?"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue