Scorecard angepasst

This commit is contained in:
2026-04-29 16:29:02 +02:00
parent 92a68cd079
commit aeeeb1f025
-13
View File
@@ -90,19 +90,6 @@ export const MatchScoreInput = ({ match }: MatchScoreInputProps) => {
<Check className="w-4 h-4 mr-2" /> <Check className="w-4 h-4 mr-2" />
{hasResult ? 'Aktualisieren' : 'Ergebnis speichern'} {hasResult ? 'Aktualisieren' : 'Ergebnis speichern'}
</Button> </Button>
{hasResult && match.result && (
<div className="pt-2 border-t border-border/50">
<div className="flex justify-between text-sm">
<span className={match.result.pointsA >= 0 ? 'text-field font-medium' : 'text-destructive'}>
{match.result.pointsA >= 0 ? '+' : ''}{match.result.pointsA} Pkt
</span>
<span className={match.result.pointsB >= 0 ? 'text-field font-medium' : 'text-destructive'}>
{match.result.pointsB >= 0 ? '+' : ''}{match.result.pointsB} Pkt
</span>
</div>
</div>
)}
</div> </div>
); );
}; };