Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasW97 committed Mar 17, 2024
2 parents e8566ed + 928962e commit 1df4f84
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions frontend/src/components/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState, useEffect} from "react"
import React, { useState, useEffect } from "react"
import cardBackground from "../CryptoHoldem_assests/Cards new/Card Background.png"

import blueA from "../CryptoHoldem_assests/Cards new/Blue/Card Blue A.png"
Expand Down Expand Up @@ -57,28 +57,22 @@ import red8 from "../CryptoHoldem_assests/Cards new/Red/Card Red 8.svg"
import red9 from "../CryptoHoldem_assests/Cards new/Red/Card Red 9.svg"
import red10 from "../CryptoHoldem_assests/Cards new/Red/Card Red 10.svg"



import { Button, Modal, notification } from "antd";
import playerOne from "../CryptoHoldem_assests/Player/head-cat.png"
import playerPlaceholder from "../CryptoHoldem_assests/Player/Placeholder Player/Placeholder Player 3.svg"
import mainPlayer from "../CryptoHoldem_assests/Player/head-whale-alive.png"



import roundTable from "../CryptoHoldem_assests/Rest/Pixel Table.png"
import { Contract, Eip1193Provider, ethers } from 'ethers';

import { BrowserProvider } from "ethers";
import { use } from "chai";

const Table: React.FC = () => {

const [ownBudget, setOwnBudget] = useState<string>("0.00");
const [playerBudget, setPlayerBudget] = useState<string>("0.00");
const [potBudget, setPotBudget] = useState<string>("0.00");

const [inputField, setInputField] = useState<number|undefined>()
const [inputField, setInputField] = useState<number | undefined>()

const [ownCardLeft, setOwnCardLeft] = useState()
const [ownCardRight, setOwnCardRight] = useState()
Expand All @@ -88,7 +82,6 @@ const Table: React.FC = () => {
const [tableCardFour, setTableCardFour] = useState()
const [tableCardFive, setTableCardFive] = useState()


const [api] = notification.useNotification();

useEffect(() => {
Expand All @@ -103,8 +96,7 @@ const Table: React.FC = () => {
"function fold() public",
"function gameState() external view returns (tuple(uint256 playerCount, uint256 playerStack, uint8 round, address playerAddress, uint256 playerBet, uint256 cardCount, uint8[] memory cardsOnTable, bool[] memory cardsRevealed, address[] memory playerAddresses))"];

var provider = new BrowserProvider(window.ethereum as Eip1193Provider);

var provider = new BrowserProvider(window.ethereum as Eip1193Provider);

function getProvider() {
if (provider === null) {
Expand Down

0 comments on commit 1df4f84

Please sign in to comment.