From c71c4a9698aa5a3033102979087977edc2c45d8e Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 11 Aug 2024 07:28:47 +0300 Subject: [PATCH] fix: fix broken ts imports after move lib component --- src/pages/game/ui/playerActions/PlayerActions.tsx | 3 +-- .../game/ui/viewOpponentCardAmount/ViewOpponentCardAmount.tsx | 3 ++- src/pages/game/ui/viewOpponentCards/ViewOpponentCards.tsx | 3 +-- src/pages/game/ui/viewUserCardAmount/ViewUserCardAmount.tsx | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/pages/game/ui/playerActions/PlayerActions.tsx b/src/pages/game/ui/playerActions/PlayerActions.tsx index 78b0632..4360e75 100644 --- a/src/pages/game/ui/playerActions/PlayerActions.tsx +++ b/src/pages/game/ui/playerActions/PlayerActions.tsx @@ -1,7 +1,6 @@ import { useDispatch, useSelector } from 'react-redux'; import { toast } from 'react-toastify'; -import { TGameCard } from 'entities/gameCards'; import { HatchButton } from 'entities/hatchButtons'; import { TSettingsSliceStore, useTranslates } from 'entities/settings'; import getCardSound from 'shared/assets/sounds/get_card.ogg'; @@ -9,7 +8,7 @@ import hoverSound from 'shared/assets/sounds/hover.ogg'; import nextStepSound from 'shared/assets/sounds/next_step.ogg'; import viewCardsSound from 'shared/assets/sounds/view_cards.ogg'; -import { GameStatuses } from '../../lib'; +import { GameStatuses, TGameCard } from '../../lib'; import { getCard, nextStep, diff --git a/src/pages/game/ui/viewOpponentCardAmount/ViewOpponentCardAmount.tsx b/src/pages/game/ui/viewOpponentCardAmount/ViewOpponentCardAmount.tsx index e52d0dd..f7c3474 100644 --- a/src/pages/game/ui/viewOpponentCardAmount/ViewOpponentCardAmount.tsx +++ b/src/pages/game/ui/viewOpponentCardAmount/ViewOpponentCardAmount.tsx @@ -1,9 +1,10 @@ import { useSelector } from 'react-redux'; -import { TGameCard } from 'entities/gameCards'; import { useTranslates } from 'entities/settings'; +import { TGameCard } from '../../lib'; import { TDeskSliceStore } from '../../model'; + import s from './ViewOpponentCardAmount.module.css'; export const ViewOpponentCardAmount = () => { diff --git a/src/pages/game/ui/viewOpponentCards/ViewOpponentCards.tsx b/src/pages/game/ui/viewOpponentCards/ViewOpponentCards.tsx index 6c4d03c..74e7524 100644 --- a/src/pages/game/ui/viewOpponentCards/ViewOpponentCards.tsx +++ b/src/pages/game/ui/viewOpponentCards/ViewOpponentCards.tsx @@ -2,12 +2,11 @@ import clsx from 'clsx'; import { ReactNode, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; -import { TGameCard } from 'entities/gameCards'; import { TSettingsSliceStore } from 'entities/settings'; import TShirtCard from 'shared/assets/images/tshirt.png'; import getCardSound from 'shared/assets/sounds/get_card.ogg'; -import { GameStatuses } from '../../lib'; +import { GameStatuses, TGameCard } from '../../lib'; import { getCardOpponent, opponentStop, diff --git a/src/pages/game/ui/viewUserCardAmount/ViewUserCardAmount.tsx b/src/pages/game/ui/viewUserCardAmount/ViewUserCardAmount.tsx index cd3876b..6efac8b 100644 --- a/src/pages/game/ui/viewUserCardAmount/ViewUserCardAmount.tsx +++ b/src/pages/game/ui/viewUserCardAmount/ViewUserCardAmount.tsx @@ -1,8 +1,8 @@ import { useSelector } from 'react-redux'; -import { TGameCard } from 'entities/gameCards'; import { useTranslates } from 'entities/settings'; +import { TGameCard } from '../../lib'; import { TDeskSliceStore } from '../../model'; import s from './ViewUserCardAmount.module.css';