mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 19:34:05 -06:00
🎁🎌 -> #1, polygon#3 (styling draft for meta(web3) games)
This commit is contained in:
parent
234cf35567
commit
37bd324d58
29
content/react/react-globalstyles-blockchain.js
vendored
Normal file
29
content/react/react-globalstyles-blockchain.js
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
import React, {useEffect} from "react";
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import {useDispatch, useSelector} from "react-redux";
|
||||
import {connect} from "./redux/blockchain/blockchainActions";
|
||||
import * as s from "./styles/globalStyles";
|
||||
|
||||
function App() {
|
||||
const dispatch = useDispatch();
|
||||
const blockchain = useSelector(state => state.blockchain);
|
||||
|
||||
console.table(blockchain);
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(connect());
|
||||
}, [dispatch]);
|
||||
|
||||
return <s.Screen>
|
||||
<s.Container flex={1} ai={"center"} jc={"center"}>
|
||||
<s.TextTitle>
|
||||
Our game
|
||||
</s.TextTitle>
|
||||
<s.SpacerSmall />
|
||||
<button>CONNECT</button>
|
||||
</s.Container>
|
||||
</s.Screen>
|
||||
}
|
||||
|
||||
export default App;
|
||||
Loading…
Reference in New Issue
Block a user