Skip to content

Commit

Permalink
Fixed "Vote for the b"
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Apr 28, 2024
1 parent d2c62c2 commit 3845922
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion src/main/ui/src/views/Host/Host.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@
.Voting {
height: 100%;
display: flex;
flex-direction: column;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}

.VoteNow {
flex: 0;
text-align: center;
padding: 1em;
font-size: 60px;
}

.Status {
text-align: center;
font-size: 20px;
Expand Down
6 changes: 3 additions & 3 deletions src/main/ui/src/views/Host/Voting.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {useCurrentBlackCard} from "./data";
import BlackCard from "../../components/BlackCard";
import { useCurrentBlackCard } from './data';
import BlackCard from '../../components/BlackCard';

export function Voting({roomCode, round}) {
const blackCard = useCurrentBlackCard(roomCode, round);

return (
<main className="Voting">
<div className="VoteNow">Vote now!</div>
<div>{blackCard && <BlackCard text={blackCard.text}/>}</div>
<div className="Status">Waiting for votes...</div>
</main>
);
}
2 changes: 1 addition & 1 deletion src/main/ui/src/views/Player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Vote ({ roomCode, round, handleVote, submittedCard }) {
return (
candidates && blackCard &&
<ShowAndPick
title="Vote for the b"
title="Vote for the best"
submitText="Vote"
blackCard={blackCard}
whiteCards={candidates}
Expand Down

0 comments on commit 3845922

Please sign in to comment.