Update React, fix null dates, add default route for missing season ID and move blurred area effect to table only
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -10,14 +10,18 @@ const SeasonSwitch: React.FC<IUserListProperties> = (props: IUserListProperties)
|
||||
const maxSeasonId = Number(props.userStats.maxSeasonId)
|
||||
|
||||
return (
|
||||
<div className={"SeasonSwitch " + (!props.enabled && " no-click")} data-testid="SeasonSwitch">
|
||||
<div className={"SeasonSwitch"} data-testid="SeasonSwitch">
|
||||
{
|
||||
seasonId > 1
|
||||
&& (props.enabled
|
||||
? <Link to={"/season/" + (seasonId - 1)} onClick={() => props.onSeasonIdChange('' + (seasonId - 1))}>
|
||||
&& <Link to={"/season/" + (seasonId - 1)} onClick={() => {
|
||||
console.log("nothing happens")
|
||||
props.onSeasonIdChange('' + (seasonId - 1))}}>
|
||||
<FontAwesomeIcon icon="arrow-circle-left"/>
|
||||
</Link>
|
||||
: <Link to={""} onClick={(e) => e.preventDefault()}>
|
||||
|| <Link to={""} onClick={(e) => {
|
||||
console.log("nothing happens2")
|
||||
e.preventDefault()}}>
|
||||
<FontAwesomeIcon icon="arrow-circle-left"/>
|
||||
</Link>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user