Moving stuff around

This commit is contained in:
aronmal 2023-01-28 20:20:43 +01:00
parent 8920b864a1
commit ed2894f5cf
Signed by: aronmal
GPG key ID: 816B7707426FC612
6 changed files with 8 additions and 8 deletions

View file

@ -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,

View file

@ -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[]}) {

View file

@ -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 & {

View file

@ -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'

View file

@ -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)