Deployed to Base Sepolia && hides buying units if u arent registered
Some checks are pending
CI / Foundry project (push) Waiting to run

This commit is contained in:
mic0 2024-10-23 17:30:49 +02:00
parent 830beab3e7
commit 6196744cd0
Signed by: mico
GPG Key ID: A3F8023524CF1C8D
4 changed files with 154 additions and 15 deletions

View File

@ -2,11 +2,10 @@ import { usePlayer } from '../providers/PlayerProvider';
import styles from '../styles/Army.module.css';
const Army = () => {
const { army, addUnit } = usePlayer()
const { army, addUnit, isRegistered } = usePlayer()
return <div className="styles.armyGathering">
<div className={`${styles.tavern_keeper} ${styles.person} ${styles.static}`} />
{isRegistered && <>
<div onClick={() => addUnit(0)} className={`${styles.scribe} ${styles.person} ${styles.moloch_denier} ${styles.static}`}>
<div className={styles.supply}>Moloch denier: {army?.moloch_denier.level}</div>
</div>
@ -19,6 +18,8 @@ const Army = () => {
<div onClick={() => addUnit(3)} className={`${styles.warrior} ${styles.person} ${styles.champion} ${styles.static}`} >
<div className={styles.supply}>Champion: {army?.champion.level}</div>
</div>
</>}
</div>
}

View File

@ -1,6 +1,7 @@
import { getDefaultConfig } from '@rainbow-me/rainbowkit';
import {
base,
baseSepolia,
sepolia,
foundry
} from 'wagmi/chains';
@ -9,6 +10,7 @@ export const config = getDefaultConfig({
appName: 'RainbowKit App',
projectId: 'YOUR_PROJECT_ID',
chains: [
baseSepolia,
foundry,
base,
...(process.env.NEXT_PUBLIC_ENABLE_TESTNETS === 'true' ? [sepolia] : []),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long