refactor(fix): build related issues
This commit is contained in:
parent
8a13bde714
commit
f93706f580
3 changed files with 16941 additions and 16 deletions
16933
frontend/casino/package-lock.json
generated
Normal file
16933
frontend/casino/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
import React, { useState } from 'react';
|
||||
import { useState } from 'react';
|
||||
import ContainerLayout from "../../utils/ContainerLayout"
|
||||
import { RPSPlayButton } from "../../components/web3/RPSPlayButton"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import ContainerLayout from "../../utils/ContainerLayout";
|
||||
import PropTypes from "prop-types";
|
||||
// import PropTypes from "prop-types";
|
||||
import Reel from "../../components/App/Slot/Reel";
|
||||
import { useEffect, useState } from "react";
|
||||
import SlotPlayButton from "../../components/web3/SlotPlayButton";
|
||||
|
@ -7,7 +7,6 @@ import SlotPlayButton from "../../components/web3/SlotPlayButton";
|
|||
|
||||
export const SlotGamePage = () => {
|
||||
const [isHorizontal, setIsHorizontal] = useState(false);
|
||||
const [cellCount, setCellCount] = useState(7);
|
||||
const [rng, setRng] = useState(false);
|
||||
const [rngReverse, setRngReverse] = useState(false);
|
||||
|
||||
|
@ -21,13 +20,6 @@ export const SlotGamePage = () => {
|
|||
}
|
||||
};
|
||||
|
||||
const handleRng = () => {
|
||||
setRng(!rng);
|
||||
};
|
||||
const handleRngReverse = () => {
|
||||
setRngReverse(!rngReverse);
|
||||
};
|
||||
|
||||
const spinReels = () => {
|
||||
// Trigger the spinning effect in each reel
|
||||
setRng(!rng);
|
||||
|
@ -58,9 +50,9 @@ export const SlotGamePage = () => {
|
|||
|
||||
<div className="min-h-[800px] w-full flex items-center justify-center">
|
||||
<div className="flex flex-row portrait:flex-col justify-center items-center my-auto">
|
||||
<Reel rng={rng} rngReverse={rngReverse} cellCount={cellCount} isHorizontal={isHorizontal} />
|
||||
<Reel rng={rng} rngReverse={rngReverse} cellCount={cellCount} isHorizontal={isHorizontal} />
|
||||
<Reel rng={rng} rngReverse={rngReverse} cellCount={cellCount} isHorizontal={isHorizontal} />
|
||||
<Reel rng={rng} rngReverse={rngReverse} cellCount={7} isHorizontal={isHorizontal} />
|
||||
<Reel rng={rng} rngReverse={rngReverse} cellCount={7} isHorizontal={isHorizontal} />
|
||||
<Reel rng={rng} rngReverse={rngReverse} cellCount={7} isHorizontal={isHorizontal} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -72,6 +64,6 @@ export const SlotGamePage = () => {
|
|||
);
|
||||
};
|
||||
|
||||
SlotGamePage.propTypes = {
|
||||
cellCount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
||||
};
|
||||
// SlotGamePage.propTypes = {
|
||||
// // cellCount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
||||
// };
|
||||
|
|
Loading…
Add table
Reference in a new issue