From 5dd57c0f2af07fe22aade50d53081cc7ff7148d2 Mon Sep 17 00:00:00 2001 From: Elijah Steres Date: Fri, 8 Jan 2021 00:39:24 -0500 Subject: [PATCH] use Link instead of a for share link --- simmadome/src/Game.tsx | 3 ++- simmadome/src/GamesPage.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/simmadome/src/Game.tsx b/simmadome/src/Game.tsx index 95024f2..c9e47e1 100644 --- a/simmadome/src/Game.tsx +++ b/simmadome/src/Game.tsx @@ -1,6 +1,7 @@ import { GameState } from './GamesUtil'; import twemoji from 'twemoji'; import React, { useRef, useLayoutEffect } from 'react'; +import { Link } from 'react-router-dom'; import './Game.css'; import base_filled from './img/base_filled.png'; import base_empty from './img/base_empty.png'; @@ -56,7 +57,7 @@ function Game(props: {gameId: string, state : GameState}) {
{state.display_top_of_inning ? state.away_name : state.home_name} batting.
-
{state.leagueoruser} (share)
+
{state.leagueoruser} (share)
); diff --git a/simmadome/src/GamesPage.tsx b/simmadome/src/GamesPage.tsx index 236fc48..6273423 100644 --- a/simmadome/src/GamesPage.tsx +++ b/simmadome/src/GamesPage.tsx @@ -22,7 +22,7 @@ function GamesPage() { let gameList = useRef(new Array<(string | null)>()); let filterGames = games.filter((game, i) => filter === "" || game[1].leagueoruser === filter); - updateList(gameList.current, filterGames, searchparams.get('gameId')); + updateList(gameList.current, filterGames, searchparams.get('game')); return ( <>