Skip to content

Commit

Permalink
Make a reusable folder for common components and shift imports accord…
Browse files Browse the repository at this point in the history
…ingly
  • Loading branch information
chauhanshilpa committed May 17, 2024
1 parent 49b17a5 commit 898666f
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { v4 as uuidv4 } from "uuid";
import Link from "next/link";
import SearchBar from "./SearchBar";
import SearchBar from "../reusable/SearchBar";
import { DISCOVER_NAVBAR_LINKS } from "@/app/utils/constants";

const Navbar = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import Image from "next/image";
import CategoriesDropdown from "@/app/components/my_account_components/CategoriesDropdown";
import CategoriesDropdown from "@/app/components/reusable/CategoriesDropdown";

const CategoriesAndGenderDetailsPopup = () => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
import { useState, useRef, useEffect } from "react";
import { IoMdClose } from "react-icons/io";
import { GiHamburgerMenu } from "react-icons/gi";
import { NAVBAR_LINKS } from "../utils/constants";
import { NAVBAR_LINKS } from "@/app/utils/constants";
import { v4 as uuidv4 } from "uuid";
import Link from "next/link";
import { Zklogin } from "../utils/Zklogin";
import { Zklogin, AccountData } from "@/app/utils/Zklogin";
import { CgProfile } from "react-icons/cg";
import { AccountData } from "../utils/Zklogin";
import { IoIosLogOut } from "react-icons/io";

/**
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import Navbar from "./components/HomeNavbar";
import Footer from "./components/Footer";

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

Expand Down
6 changes: 3 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Image from "next/image";
import HomeNavbar from "./components/reusable/HomeNavbar";
import { LANDING_PAGE_BUTTON } from "./utils/constants";
import { v4 as uuidv4 } from "uuid";
import MembershipPlanCard1 from "./components/membership_plan_cards/MembershipPlanCard1";
import MembershipPlanCard2 from "./components/membership_plan_cards/MembershipPlanCard2";
import HomeNavbar from "./components/HomeNavbar";
import Footer from "./components/Footer";
import Footer from "./components/reusable/Footer";

/*
*
Expand All @@ -14,7 +14,7 @@ import Footer from "./components/Footer";
export default function Home() {
return (
<main className="w-[95vw] mx-auto p-10">
<HomeNavbar />
<HomeNavbar/>
<div className="bg-[#CDE1F2] p-10">
<div className="flex lg:flex-row md:flex-col sm:items-center xs:flex-col justify-between row-1">
<div className="flex flex-col xs:items-center lg:items-start">
Expand Down
2 changes: 1 addition & 1 deletion app/voyager/communities/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { v4 as uuidv4 } from "uuid";
import { DISCOVER_PAGE_BUTTONS } from "../../utils/constants";
import Image from "next/image";
import VivrantCommunitiesCard from "../../components/communities_components/VivrantCommunitiesCard";
import Footer from "@/app/components/Footer";
import Footer from "@/app/components/reusable/Footer";

const Community = () => {
return (
Expand Down
6 changes: 3 additions & 3 deletions app/voyager/my_account/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { useState } from "react";
import Image from "next/image";
import { useSearchParams } from "next/navigation";
import HomeNavbar from "@/app/components/HomeNavbar";
import Footer from "@/app/components/Footer";
import CategoriesDropdown from "@/app/components/my_account_components/CategoriesDropdown";
import HomeNavbar from "@/app/components/reusable/HomeNavbar";
import Footer from "@/app/components/reusable/Footer";
import CategoriesDropdown from "@/app/components/reusable/CategoriesDropdown";

const MyAccount = () => {
const [gender, setGender] = useState<string | undefined>();
Expand Down
2 changes: 1 addition & 1 deletion app/voyager/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ProfileNavbar from "../../components/profile_components/ProfileNavbar";
import Image from "next/image";
import { v4 as uuidv4 } from "uuid";
import { PROFILE_PAGE_IMAGES } from "../../utils/constants";
import Footer from "@/app/components/Footer";
import Footer from "@/app/components/reusable/Footer";

const Profile = () => {
return (
Expand Down

0 comments on commit 898666f

Please sign in to comment.