Skip to content

Commit 898666f

Browse files
committed
Make a reusable folder for common components and shift imports accordingly
1 parent 49b17a5 commit 898666f

File tree

11 files changed

+12
-15
lines changed

11 files changed

+12
-15
lines changed

app/components/communities_components/CommunitiesNavbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { v4 as uuidv4 } from "uuid";
44
import Link from "next/link";
5-
import SearchBar from "./SearchBar";
5+
import SearchBar from "../reusable/SearchBar";
66
import { DISCOVER_NAVBAR_LINKS } from "@/app/utils/constants";
77

88
const Navbar = () => {

app/components/random_chat_components/CategoriesAndGenderDetailsPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import Image from "next/image";
3-
import CategoriesDropdown from "@/app/components/my_account_components/CategoriesDropdown";
3+
import CategoriesDropdown from "@/app/components/reusable/CategoriesDropdown";
44

55
const CategoriesAndGenderDetailsPopup = () => {
66
return (
File renamed without changes.

app/components/HomeNavbar.tsx renamed to app/components/reusable/HomeNavbar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
import { useState, useRef, useEffect } from "react";
33
import { IoMdClose } from "react-icons/io";
44
import { GiHamburgerMenu } from "react-icons/gi";
5-
import { NAVBAR_LINKS } from "../utils/constants";
5+
import { NAVBAR_LINKS } from "@/app/utils/constants";
66
import { v4 as uuidv4 } from "uuid";
77
import Link from "next/link";
8-
import { Zklogin } from "../utils/Zklogin";
8+
import { Zklogin, AccountData } from "@/app/utils/Zklogin";
99
import { CgProfile } from "react-icons/cg";
10-
import { AccountData } from "../utils/Zklogin";
1110
import { IoIosLogOut } from "react-icons/io";
1211

1312
/**

app/layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import type { Metadata } from "next";
22
import { Inter } from "next/font/google";
33
import "./globals.css";
4-
import Navbar from "./components/HomeNavbar";
5-
import Footer from "./components/Footer";
64

75
const inter = Inter({ subsets: ["latin"] });
86

app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Image from "next/image";
2+
import HomeNavbar from "./components/reusable/HomeNavbar";
23
import { LANDING_PAGE_BUTTON } from "./utils/constants";
34
import { v4 as uuidv4 } from "uuid";
45
import MembershipPlanCard1 from "./components/membership_plan_cards/MembershipPlanCard1";
56
import MembershipPlanCard2 from "./components/membership_plan_cards/MembershipPlanCard2";
6-
import HomeNavbar from "./components/HomeNavbar";
7-
import Footer from "./components/Footer";
7+
import Footer from "./components/reusable/Footer";
88

99
/*
1010
*
@@ -14,7 +14,7 @@ import Footer from "./components/Footer";
1414
export default function Home() {
1515
return (
1616
<main className="w-[95vw] mx-auto p-10">
17-
<HomeNavbar />
17+
<HomeNavbar/>
1818
<div className="bg-[#CDE1F2] p-10">
1919
<div className="flex lg:flex-row md:flex-col sm:items-center xs:flex-col justify-between row-1">
2020
<div className="flex flex-col xs:items-center lg:items-start">

app/voyager/communities/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { v4 as uuidv4 } from "uuid";
55
import { DISCOVER_PAGE_BUTTONS } from "../../utils/constants";
66
import Image from "next/image";
77
import VivrantCommunitiesCard from "../../components/communities_components/VivrantCommunitiesCard";
8-
import Footer from "@/app/components/Footer";
8+
import Footer from "@/app/components/reusable/Footer";
99

1010
const Community = () => {
1111
return (

app/voyager/my_account/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import { useState } from "react";
44
import Image from "next/image";
55
import { useSearchParams } from "next/navigation";
6-
import HomeNavbar from "@/app/components/HomeNavbar";
7-
import Footer from "@/app/components/Footer";
8-
import CategoriesDropdown from "@/app/components/my_account_components/CategoriesDropdown";
6+
import HomeNavbar from "@/app/components/reusable/HomeNavbar";
7+
import Footer from "@/app/components/reusable/Footer";
8+
import CategoriesDropdown from "@/app/components/reusable/CategoriesDropdown";
99

1010
const MyAccount = () => {
1111
const [gender, setGender] = useState<string | undefined>();

0 commit comments

Comments
 (0)