Skip to content

Commit

Permalink
Merge pull request #267 from Michelle031/fix-263
Browse files Browse the repository at this point in the history
fixed issue 263
CLOSES #267
  • Loading branch information
BigBen-7 authored Mar 4, 2025
2 parents b7f3d87 + 89b444f commit 7ba19d5
Show file tree
Hide file tree
Showing 32 changed files with 43 additions and 41 deletions.
2 changes: 1 addition & 1 deletion frontend/app/(auth)/change-password/page.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import PasswordChangeForm from '../../../components/ChangePassword';
import PasswordChangeForm from '@/components/ChangePassword';


export default function SignInPage() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(auth)/otp-verification/page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OtpVerification from "../../../components/OtpVerification";
import OtpVerification from "@/components/OtpVerification";

import React from "react";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(auth)/signin/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SignInWithGoogle from '@/components/sigInWithGoogle';
import SignInForm from '../../../components/SignInForm';
import SignInForm from '@/components/SignInForm';

export default function SignInPage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(auth)/signup/page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SignUpForm from "../../../components/SignUpForm";
import SignUpForm from "@/components/SignUpForm";

export default function SignUpPage() {
return <SignUpForm />;
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/achievements/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import Achievements from "../../../components/Achievements";
import Achievements from "@/components/Achievements";

const page = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/admin-signin/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import AdminSignin from "../../../components/AdminSignin";
import AdminSignin from "@/components/AdminSignin";

const page = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/coming-soon/page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ComingSoon from '../../../components/ComingSoon'
import ComingSoon from '@/components/ComingSoon'
import React from 'react'

const page = () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/daily-challenge/page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DailyChallenge from "../../../components/DailyChallenge";
import DailyChallenge from "@/components/DailyChallenge";

import React from "react";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/edit-profile/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import EditProfile from "../../../components/EditProfile";
import EditProfile from "@/components/EditProfile";

const page = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/forgot-password/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";
import React from "react";
import ForgotPassword from "../../../components/ForgotPassword";
import ForgotPassword from "@/components/ForgotPassword";

const page = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/(root)/game/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Keyboard from "../../../components/Keyboard";
import WordGrid from "../../../components/WordGrid.jsx";
import Keyboard from "@/components/Keyboard";
import WordGrid from "@/components/WordGrid.jsx";

export default function page() {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/interactive-how-to-play/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import InteractiveHowToPlay from "../../../components/InteractiveHowToPlay";
import InteractiveHowToPlay from "@/components/InteractiveHowToPlay";

const page = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/(root)/layout.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'
import { usePathname } from "next/navigation";
import Navbar from "../../components/Navbar";
import { AppProvider } from "../../context/AppContext";
import Navbar from "@/components/Navbar";
import { AppProvider } from "@/context/AppContext";

const Layout = ({ children }) => {
const pathname = usePathname();
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LandingPage from "../../components/LandingPage";
import LandingPage from "@/components/LandingPage";

export default function Page() {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/profile/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import Profile from "../../../components/Profile";
import Profile from "@/components/Profile";

const page = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(root)/stats/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import Leaderboard from "../../../components/Leaderboard";
import Leaderboard from "@/components/Leaderboard";

const page = () => {
return (
Expand Down
6 changes: 4 additions & 2 deletions frontend/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"context": "@/context",
"utils": "@/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
"hooks": "@/hooks",
"assets": "@/assets"
},
"iconLibrary": "lucide"
}
2 changes: 1 addition & 1 deletion frontend/components/ForgotPassword.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useState } from 'react';
import Link from 'next/link';
import { Formik, Form, Field } from 'formik';
import { ForgotPasswordSchema } from '../utils/schema/forgotPasswordSchema';
import { ForgotPasswordSchema } from '@/utils/schema/forgotPasswordSchema';


function ForgotPassword() {
Expand Down
10 changes: 5 additions & 5 deletions frontend/components/HelpGuide.jsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
"use client";

import React from "react";
import { Button } from "../components/ui/button";
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
} from "../components/ui/dialog";
} from "@/components/ui/dialog";
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "../components/ui/tabs";
} from "@/components/ui/tabs";
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "../components/ui/accordion";
} from "@/components/ui/accordion";
import { BookOpen, Settings, Gamepad2 } from "lucide-react";
import Link from "next/link";
import { helpContent } from "../utils/helpContent";
import { helpContent } from "@/utils/helpContent";

// Component for rendering individual letter tiles
function LetterTile({ letter, state = "absent" }) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Keyboard.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import React, { useContext, useEffect, useCallback, useState } from "react";
import { Delete } from "lucide-react";
import { AppContext } from "../context/AppContext";
import { AppContext } from "@/context/AppContext";
import gsap from "gsap";

const Keyboard = () => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/LeaderBoardModal.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import Image from "next/image";
import share from "../assets/share.png";
import avatar from "../assets/avatar.png";
import share from "@/assets/share.png";
import avatar from "@/assets/avatar.png";

const LeaderBoardModal = ({ isOpen, onClose }) => {
if (!isOpen) return null;
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/Leaderboard.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Image from "next/image";
import profile1 from "../assets/profile1.png";
import profile2 from "../assets/profile2.png";
import profile1 from "@/assets/profile1.png";
import profile2 from "@/assets/profile2.png";

const Leaderboard = () => {
const date = "17 Feb 2025 ";
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { useState } from "react";
import Image from "next/image";
import DewordleIcon from "../assets/dewordleIcon.svg";
import DewordleIcon from "@/assets/dewordleIcon.svg";
import {
BarChartIcon as ChartNoAxesColumn,
Settings,
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/NavbarLandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { useState, useEffect, useRef } from "react";
import Image from "next/image";
import DewordleIcon from "../assets/dewordleIcon.svg";
import DewordleIcon from "@/assets/dewordleIcon.svg";
import { ChevronDown, Menu, X } from "lucide-react";
import HowToPlayModal from "./HowToPlayModal";
import Link from "next/link";
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React, { useState } from "react";
import { X } from "lucide-react";
import { Switch } from "@headlessui/react";
import Copywrite from "./Copywrite";
import { useTheme } from "../context/ThemeContext";
import { useTheme } from "@/context/ThemeContext";

export const Setting = ({ isOpen, onClose }) => {
if (!isOpen) return null;
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/SignInForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useState } from 'react';
import Link from 'next/link';
import { Eye, EyeOff } from 'lucide-react';
import { Formik, Form, Field } from 'formik';
import { signInSchema } from '../utils/authValidationSchema';
import { signInSchema } from '@/utils/authValidationSchema';

const SignInForm = () => {
const [showPassword, setShowPassword] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/SignUpForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Formik, Form, Field } from 'formik';
import { FcGoogle } from 'react-icons/fc';
import { FaApple } from 'react-icons/fa';
import * as Yup from 'yup';
import { signUpSchema } from '../utils/authValidationSchema';
import { signUpSchema } from '@/utils/authValidationSchema';

const SignUpForm = () => {
const router = useRouter();
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/WordGrid.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";
import React, { useContext } from "react";
import { AppContext } from "../context/AppContext";
import { AppContext } from "@/context/AppContext";

function WordGrid() {
const { gridData } = useContext(AppContext);
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ui/accordion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import * as AccordionPrimitive from "@radix-ui/react-accordion";
import { ChevronDown } from "lucide-react";

import { cn } from "../../lib/utils";
import { cn } from "@/lib/utils";

const Accordion = AccordionPrimitive.Root;

Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ui/button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cva } from "class-variance-authority";

import { cn } from "../../lib/utils";
import { cn } from "@/lib/utils";

const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ui/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { X } from "lucide-react";

import { cn } from "../../lib/utils";
import { cn } from "@/lib/utils";

const Dialog = DialogPrimitive.Root;

Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ui/tabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as React from "react";
import * as TabsPrimitive from "@radix-ui/react-tabs";

import { cn } from "../../lib/utils";
import { cn } from "@/lib/utils";

const Tabs = TabsPrimitive.Root;

Expand Down

0 comments on commit 7ba19d5

Please sign in to comment.