Moving stuff around
This commit is contained in:
parent
8920b864a1
commit
ed2894f5cf
6 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
import { CSSProperties, Dispatch, SetStateAction } from 'react'
|
||||
import { borderCN, cornerCN, fieldIndex } from '../helpers'
|
||||
import { Position, MouseCursor } from '../interfaces'
|
||||
import { borderCN, cornerCN, fieldIndex } from '../utils/helpers'
|
||||
import { Position, MouseCursor } from '../interfaces/frontend'
|
||||
|
||||
type TilesType = {
|
||||
key: number,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { faBurst, faXmark } from '@fortawesome/pro-solid-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { CSSProperties } from 'react'
|
||||
import { Hit } from '../interfaces'
|
||||
import { Hit } from '../interfaces/frontend'
|
||||
|
||||
function HitElems({hits}: {hits: Hit[]}) {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import classNames from 'classnames'
|
||||
import { CSSProperties } from 'react'
|
||||
import { fieldIndex } from '../helpers'
|
||||
import { Field } from '../interfaces'
|
||||
import { fieldIndex } from '../utils/helpers'
|
||||
import { Field } from '../interfaces/frontend'
|
||||
|
||||
function Labeling({count}: {count: number}) {
|
||||
let elems: (Field & {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { useCallback, useEffect, useMemo, useReducer, useState } from 'react'
|
||||
import { hitReducer, initlialLastLeftTile, initlialTarget, initlialTargetPreview, initlialMouseCursor, isHit } from '../helpers'
|
||||
import { Hit, Items, Mode, MouseCursor, Target, Position } from '../interfaces'
|
||||
import { hitReducer, initlialLastLeftTile, initlialTarget, initlialTargetPreview, initlialMouseCursor, isHit } from '../utils/helpers'
|
||||
import { Hit, Items, Mode, MouseCursor, Target, Position } from '../interfaces/frontend'
|
||||
import Item from './Item'
|
||||
import GamefieldPointer from './GamefieldPointer'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Hit, HitDispatch } from "./interfaces"
|
||||
import { Hit, HitDispatch } from "../interfaces/frontend"
|
||||
|
||||
export function borderCN(count: number, x: number, y: number) {
|
||||
if (x === 0)
|
Loading…
Add table
Add a link
Reference in a new issue