From 72f5b597196f2c998c9f92aab18ce2a075b1c35d Mon Sep 17 00:00:00 2001 From: MaxOvs19 Date: Mon, 29 May 2023 18:30:16 +0300 Subject: [PATCH] Test imports --- config/webpack/common.js | 2 ++ jsconfig.json | 6 ++---- src/components/Modal/ModalErrorLogin/ModalErrorLogin.jsx | 3 ++- src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx | 1 - 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/webpack/common.js b/config/webpack/common.js index 722e3f13..2b99d678 100644 --- a/config/webpack/common.js +++ b/config/webpack/common.js @@ -52,6 +52,8 @@ module.exports = { resolve: { alias: { "@": `${paths.src}/modules`, + // "@components": `${paths.src}/components`, + // "@assets": `${paths.src}/assets`, }, extensions: [".mjs", ".js", ".jsx", ".ts", ".tsx", ".json"], }, diff --git a/jsconfig.json b/jsconfig.json index ae6dd8de..ec2332eb 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,7 +1,5 @@ { "compilerOptions": { - "target": "es2020" - // "baseUrl": "src" - }, - "include": ["src"] + "baseUrl": "src" + } } diff --git a/src/components/Modal/ModalErrorLogin/ModalErrorLogin.jsx b/src/components/Modal/ModalErrorLogin/ModalErrorLogin.jsx index e1b62398..06419a0b 100644 --- a/src/components/Modal/ModalErrorLogin/ModalErrorLogin.jsx +++ b/src/components/Modal/ModalErrorLogin/ModalErrorLogin.jsx @@ -1,9 +1,10 @@ import React from "react"; -import "./modalErrorLogin.scss"; import ModalLayout from "../../Common/ModalLayout/ModalLayout"; import BaseButton from "../../Common/BaseButton/BaseButton"; +import "./modalErrorLogin.scss"; + export const ModalErrorLogin = ({ active, setActive, title }) => { return ( diff --git a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx index 4c235d8b..d6efa834 100644 --- a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx +++ b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx @@ -10,7 +10,6 @@ import { } from "../../../../redux/projectsTrackerSlice"; import { getCorrectDate } from "../../../../components/Calendar/calendarHelper"; -// import TrackerModal from ""; import TrackerModal from "../../../UI/TrackerModal/TrackerModal"; import ModalLayout from "../../../Common/ModalLayout/ModalLayout"; import BaseButton from "../../../Common/BaseButton/BaseButton";