Changeset 64dc53b for components/blackjack
- Timestamp:
- 06/11/22 23:50:19 (2 years ago)
- Branches:
- main
- Children:
- 4a1a3ca
- Parents:
- 87614a5
- Location:
- components/blackjack
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
components/blackjack/Blackjack.jsx
r87614a5 r64dc53b 1 1 import React from 'react' 2 2 3 import InGameHeader from '../../components/InGameHeader'3 import BlackjackHeader from './BlackjackHeader' 4 4 5 5 import Head from 'next/head' … … 18 18 </Head> 19 19 20 < InGameHeader/>20 <BlackjackHeader/> 21 21 22 22 <PlayButtons/> -
components/blackjack/BlackjackHeader.jsx
r87614a5 r64dc53b 7 7 import { AiOutlineArrowLeft } from 'react-icons/ai' 8 8 9 import { use State, useEffect } from 'react'9 import { useEffect } from 'react' 10 10 import { useDispatch, useSelector } from 'react-redux' 11 11 12 import { setGame, setPlayer } from '../ redux/reducers/playerSlice'13 import { setBlackjack, setStyle } from '../ redux/reducers/styleSlice'12 import { setGame, setPlayer } from '../../redux/reducers/playerSlice' 13 import { setBlackjack, setStyle } from '../../redux/reducers/styleSlice' 14 14 15 15 import axios from 'axios'; 16 16 17 const InGameHeader = () => {17 const BlackjackHeader = () => { 18 18 const dispatch = useDispatch(); 19 19 … … 267 267 } 268 268 269 export default InGameHeader269 export default BlackjackHeader -
components/blackjack/Cards.jsx
r87614a5 r64dc53b 2 2 3 3 import { useSelector } from 'react-redux' 4 5 import { useState } from 'react'6 4 7 5 import Card from '../Card' … … 9 7 const Cards = () => { 10 8 const playerState = useSelector(state => state.player) 11 12 let initialPos = {13 left: 70,14 top: 24,15 }16 9 17 10 let playerPos = { -
components/blackjack/PlayButtons.jsx
r87614a5 r64dc53b 8 8 9 9 import { useSelector, useDispatch } from 'react-redux' 10 import { useState, useEffect } from 'react'11 10 12 11 import axios from 'axios';
Note:
See TracChangeset
for help on using the changeset viewer.