From fad76536151cd3a91538fdf76debcb8248991f29 Mon Sep 17 00:00:00 2001 From: Malaber Date: Wed, 19 Mar 2025 22:08:09 +0100 Subject: [PATCH] Timer dedup --- js/components/Navigation.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/js/components/Navigation.js b/js/components/Navigation.js index e6cd07f..4795fa5 100644 --- a/js/components/Navigation.js +++ b/js/components/Navigation.js @@ -8,6 +8,12 @@ import {logout} from '../api'; import {notify} from 'react-notify-toast'; import {Timer} from './Timer'; +const TournamentTimer = ({timerEnd, className}) => ( + + Spielzeit: + +); + export class TurniereNavigation extends React.Component { constructor(props) { super(props); @@ -26,17 +32,13 @@ export class TurniereNavigation extends React.Component { turnie.re {tournament && tournament.timerEnd && - - Spielzeit: - + } {tournament && tournament.timerEnd && - - Spielzeit: - + }