Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/react-app/src/components/RaffleDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default function RaffleDetail({ readProvider, writeProvider, tx, raffleAd
<div className="action">
<div className="right">
<div className="ticket-image"><Image src={ticketMeta?.image} className="nft-preview" /></div>
<div className="extra"> Each ticket is an NFT represented above.</div>
</div>
<div className="action-box left">
<div className="ticket-no">
Expand All @@ -88,8 +89,9 @@ export default function RaffleDetail({ readProvider, writeProvider, tx, raffleAd
/>
</div>
<div className="price-info">
<div className="extra">You'll spend</div>
<div className="metric">You'll spend</div>
<div className="value">{ticketPrice ? `${(formatEther(ticketPrice) * numTicketsToBuy).toFixed(5)} Ξ` : "--"}</div>
<div className="extra">Odds: {((numTicketsToBuy/numInitialTickets) * 100).toFixed(2)} %</div>
</div>
<Button
disabled={!connected}
Expand Down
3 changes: 2 additions & 1 deletion packages/react-app/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ div.ant-input-number {

.nft-preview {
width:100%;
margin-bottom: 10px;
}

.section {
Expand Down Expand Up @@ -178,7 +179,7 @@ div.ant-input-number {
} */

.price-info {
margin-top:10px!important;
margin-top:20px!important;
text-align: center!important;
}

Expand Down