Ignore:
Timestamp:
06/11/22 23:50:19 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
4a1a3ca
Parents:
87614a5
Message:

Code cleanings

Location:
components/blackjack
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • components/blackjack/Blackjack.jsx

    r87614a5 r64dc53b  
    11import React from 'react'
    22
    3 import InGameHeader from '../../components/InGameHeader'
     3import BlackjackHeader from './BlackjackHeader'
    44
    55import Head from 'next/head'
     
    1818      </Head>
    1919 
    20       <InGameHeader/>
     20      <BlackjackHeader/>
    2121
    2222      <PlayButtons/>
  • components/blackjack/BlackjackHeader.jsx

    r87614a5 r64dc53b  
    77import { AiOutlineArrowLeft } from 'react-icons/ai'
    88
    9 import { useState, useEffect } from 'react'
     9import { useEffect } from 'react'
    1010import { useDispatch, useSelector } from 'react-redux'
    1111
    12 import { setGame, setPlayer } from '../redux/reducers/playerSlice'
    13 import { setBlackjack, setStyle } from '../redux/reducers/styleSlice'
     12import { setGame, setPlayer } from '../../redux/reducers/playerSlice'
     13import { setBlackjack, setStyle } from '../../redux/reducers/styleSlice'
    1414
    1515import axios from 'axios';
    1616
    17 const InGameHeader = () => {
     17const BlackjackHeader = () => {
    1818    const dispatch = useDispatch();
    1919
     
    267267}
    268268
    269 export default InGameHeader
     269export default BlackjackHeader
  • components/blackjack/Cards.jsx

    r87614a5 r64dc53b  
    22
    33import { useSelector } from 'react-redux'
    4 
    5 import { useState } from 'react'
    64
    75import Card from '../Card'
     
    97const Cards = () => {
    108  const playerState = useSelector(state => state.player)
    11 
    12   let initialPos = {
    13     left: 70,
    14     top: 24,
    15   }
    169
    1710  let playerPos = {
  • components/blackjack/PlayButtons.jsx

    r87614a5 r64dc53b  
    88
    99import { useSelector, useDispatch } from 'react-redux'
    10 import { useState, useEffect } from 'react'
    1110
    1211import axios from 'axios';
Note: See TracChangeset for help on using the changeset viewer.