{`${game.teams[predictedWinner].name} ${ + gameData.resolved ? '' : 'Wins' + }${ + gameData.resolved && isDrawResult + ? 'Tied' + : gameData.resolved && isPredictionCorrect + ? 'Won' + : gameData.resolved && !isPredictionCorrect + ? 'Lost' + : '' + }`}
+{`${formatEther( + prediction.amount ?? BigInt(0), + )} MATIC`}
+{`+${formatEther( + calculatedWinnings ?? BigInt(0), + )} MATIC`}
+{`-${formatEther( + prediction.amount ?? BigInt(0), + )} MATIC`}
+{`+${formatEther( + calculatedWinnings ?? BigInt(0), + )} MATIC`}
++ {`${game.teams.home.name} vs ${ + game.teams.away.name + }, ${format(game.date, 'eeee, MMMM d')}`} +
+{`${ + prediction.game.teams[prediction.predictedWinner].name + } Wins`}
++ {`${prediction.game.teams.home.name} vs ${ + prediction.game.teams.away.name + }, ${format(prediction.game.date, 'eeee, MMMM d')}`} +
+ + +Prediction Slip is empty
+
+ To add a Prediction to your
+
+ prediction slip, please select a
+ prediction from the list.
+
No predictions placed...
++ Once you add a prediction via the predictions slip tab, it will + show up here. +
++ {game.teams.home.name} +
++ {game.teams.away.name} +
++ {`${format(game.date, 'eeee, MMMM d @ h:mm aaa z')}`} +
+ )} ++ This dApp has been developed for educational purposes only and + is not meant to be used for gambling +
++ Built on top of Polygon testnet and Chainlink, this dApp + enables users to interact with real time sport data, receive + automatic payouts, and transfer tokens across chains. +
++ {body} +
+ ) +}) +FormMessage.displayName = 'FormMessage' + +export { + useFormField, + Form, + FormItem, + FormLabel, + FormControl, + FormDescription, + FormMessage, + FormField, +} diff --git a/app/src/components/ui/input.tsx b/app/src/components/ui/input.tsx new file mode 100644 index 0000000..929e05f --- /dev/null +++ b/app/src/components/ui/input.tsx @@ -0,0 +1,25 @@ +import * as React from "react" + +import { cn } from "@/lib/utils" + +export interface InputProps + extends React.InputHTMLAttributesConnect to play!
+ )} +