From 36e1e645c33fd64d98d2b4b5a9d887ea01b384ae Mon Sep 17 00:00:00 2001 From: Sanskar Lamsal <71601419+SansCaar@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:52:50 +0000 Subject: [PATCH 1/2] FIxed import statements --- nepalingo-web/src/components/header/ChangeLanguage.tsx | 2 +- nepalingo-web/src/components/header/Menu.tsx | 2 +- nepalingo-web/src/components/randomQuotes.tsx | 4 ++-- nepalingo-web/src/pages/Login.tsx | 2 +- nepalingo-web/src/pages/ResetPassword.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nepalingo-web/src/components/header/ChangeLanguage.tsx b/nepalingo-web/src/components/header/ChangeLanguage.tsx index 9569469..9eecf75 100644 --- a/nepalingo-web/src/components/header/ChangeLanguage.tsx +++ b/nepalingo-web/src/components/header/ChangeLanguage.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState } from "react"; import Menu from "./Menu"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faChevronDown } from "@fortawesome/free-solid-svg-icons"; -import { LanguageKey, Languages, useLanguage } from "../../hooks/Langauge"; +import { LanguageKey, Languages, useLanguage } from "@/hooks/Langauge"; const ChangeLanguage: React.FC = () => { const [isOpen, setIsOpen] = useState(false); diff --git a/nepalingo-web/src/components/header/Menu.tsx b/nepalingo-web/src/components/header/Menu.tsx index 36ecb30..0257cb3 100644 --- a/nepalingo-web/src/components/header/Menu.tsx +++ b/nepalingo-web/src/components/header/Menu.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { LanguageKey } from "../../hooks/Langauge"; +import { LanguageKey } from "@/hooks/Langauge"; interface MenuProps { isOpen: boolean; diff --git a/nepalingo-web/src/components/randomQuotes.tsx b/nepalingo-web/src/components/randomQuotes.tsx index a855cd6..fb03f06 100644 --- a/nepalingo-web/src/components/randomQuotes.tsx +++ b/nepalingo-web/src/components/randomQuotes.tsx @@ -1,6 +1,6 @@ import React from "react"; -import { useLanguage } from "../hooks/Langauge"; -import useQuotes from "../hooks/useQuotes"; +import { useLanguage } from "@/hooks/Langauge"; +import useQuotes from "@/hooks/useQuotes"; const RandomQuoteComponent: React.FC = () => { const { selectedLanguage } = useLanguage(); diff --git a/nepalingo-web/src/pages/Login.tsx b/nepalingo-web/src/pages/Login.tsx index 186bba7..223218f 100644 --- a/nepalingo-web/src/pages/Login.tsx +++ b/nepalingo-web/src/pages/Login.tsx @@ -11,7 +11,7 @@ import { faEye, faEyeSlash, } from "@fortawesome/free-solid-svg-icons"; -import TheBird from "../assets/TheBird.png"; +import TheBird from "@/assets/TheBird.png"; import ReactGA from "react-ga4"; const Login: React.FC = () => { diff --git a/nepalingo-web/src/pages/ResetPassword.tsx b/nepalingo-web/src/pages/ResetPassword.tsx index 3b095b7..4e6e1ad 100644 --- a/nepalingo-web/src/pages/ResetPassword.tsx +++ b/nepalingo-web/src/pages/ResetPassword.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { useAuth } from "../hooks/Auth"; +import { useAuth } from "@/hooks/Auth"; import { useNavigate } from "react-router-dom"; import CustomTextInput from "@/components/CustomTextInput"; import Button from "@/components/Button"; From 0a021a74cc91ebc1ecbb6affcabf0c943f17a910 Mon Sep 17 00:00:00 2001 From: Sanskar Lamsal <71601419+SansCaar@users.noreply.github.com> Date: Sat, 3 Aug 2024 18:44:31 +0545 Subject: [PATCH 2/2] Added some of remaining imports --- nepalingo-web/src/components/About.tsx | 2 +- nepalingo-web/src/components/ActivityCard.tsx | 2 +- nepalingo-web/src/components/header/ChangeLanguage.tsx | 2 +- nepalingo-web/src/main.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nepalingo-web/src/components/About.tsx b/nepalingo-web/src/components/About.tsx index 326b041..27659f9 100644 --- a/nepalingo-web/src/components/About.tsx +++ b/nepalingo-web/src/components/About.tsx @@ -1,5 +1,5 @@ import React from "react"; -import Header from "./header/Header"; +import Header from "@/components/header/Header"; const teamMembers = [ { diff --git a/nepalingo-web/src/components/ActivityCard.tsx b/nepalingo-web/src/components/ActivityCard.tsx index e48286b..1088f5b 100644 --- a/nepalingo-web/src/components/ActivityCard.tsx +++ b/nepalingo-web/src/components/ActivityCard.tsx @@ -1,5 +1,5 @@ import React from "react"; -import Button from "./Button"; +import Button from "@/components/Button"; interface ActivityCardProps { backgroundImageUrl: string; diff --git a/nepalingo-web/src/components/header/ChangeLanguage.tsx b/nepalingo-web/src/components/header/ChangeLanguage.tsx index 9eecf75..06d1be5 100644 --- a/nepalingo-web/src/components/header/ChangeLanguage.tsx +++ b/nepalingo-web/src/components/header/ChangeLanguage.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useRef, useState } from "react"; -import Menu from "./Menu"; +import Menu from "@/components/header/Menu"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faChevronDown } from "@fortawesome/free-solid-svg-icons"; import { LanguageKey, Languages, useLanguage } from "@/hooks/Langauge"; diff --git a/nepalingo-web/src/main.tsx b/nepalingo-web/src/main.tsx index b7df43a..a975692 100644 --- a/nepalingo-web/src/main.tsx +++ b/nepalingo-web/src/main.tsx @@ -1,7 +1,7 @@ import React from "react"; import ReactDOM from "react-dom/client"; import App from "@/App"; -import "./index.css"; +import "@/index.css"; import { AuthProvider } from "@/hooks/Auth"; import { StreakProvider } from "@/hooks/StreakContext"; import { LanguageProvider } from "@/hooks/Langauge";