const [showDialog, setShowDialog] = useState(false);
if (round.seed) {
- return (
+ return <>
<Button href={round.seed} target="_blank" variant="primary">
{i18n.t('rounds.seed')}
</Button>
- );
+ {round.spoiler ?
+ <Button
+ className="ms-2"
+ href={round.spoiler}
+ target="_blank"
+ variant="outline-primary"
+ >
+ {i18n.t('rounds.spoiler')}
+ </Button>
+ : null}
+ </>;
}
if (maySetSeed(user, tournament, round)) {
return <>
SeedButton.propTypes = {
round: PropTypes.shape({
seed: PropTypes.string,
+ spoiler: PropTypes.string,
}),
tournament: PropTypes.shape({
}),