X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FSeedButton.js;h=71299cc7b84c0036b30da90cc3422f7b477ad4df;hb=4b0f87a8b0683579c53c68f35b18e5d08c30b3b9;hp=d9d343304eca067fc7996fa72c940f187a85badc;hpb=a748d5724c8acff6e3bb3fe6c20aa5968b65d58a;p=alttp.git
diff --git a/resources/js/components/rounds/SeedButton.js b/resources/js/components/rounds/SeedButton.js
index d9d3433..71299cc 100644
--- a/resources/js/components/rounds/SeedButton.js
+++ b/resources/js/components/rounds/SeedButton.js
@@ -12,11 +12,21 @@ const SeedButton = ({ round, tournament, user }) => {
const [showDialog, setShowDialog] = useState(false);
if (round.seed) {
- return (
+ return <>
- );
+ {round.spoiler ?
+
+ : null}
+ >;
}
if (maySetSeed(user, tournament, round)) {
return <>
@@ -36,6 +46,7 @@ const SeedButton = ({ round, tournament, user }) => {
SeedButton.propTypes = {
round: PropTypes.shape({
seed: PropTypes.string,
+ spoiler: PropTypes.string,
}),
tournament: PropTypes.shape({
}),