diff --git a/app/communities/page.tsx b/app/communities/page.tsx index 4732138..74780a6 100644 --- a/app/communities/page.tsx +++ b/app/communities/page.tsx @@ -1,9 +1,9 @@ "use client"; -import CommunityItem from "@/components/Community/community-item/CommunityItem"; -import PersonalHome from "@/components/Community/PersonalHome"; -import PageContent from "@/components/Layout/PageContent"; -import CommunityLoader from "@/components/Loaders/CommunityLoader"; +import CommunityItem from "@/components/community/community-item/CommunityItem"; +import PersonalHome from "@/components/community/PersonalHome"; +import PageContent from "@/components/layout/PageContent"; +import CommunityLoader from "@/components/loaders/CommunityLoader"; import useCommunitiesFeed from "@/hooks/community/useCommunitiesFeed"; import useCommunityState from "@/hooks/community/useCommunityState"; import useCommunityMembershipActions from "@/hooks/community/useCommunityMembershipActions"; diff --git a/app/community/[communityId]/CommunityClientPage.tsx b/app/community/[communityId]/CommunityClientPage.tsx index c6b72aa..5cd07cf 100644 --- a/app/community/[communityId]/CommunityClientPage.tsx +++ b/app/community/[communityId]/CommunityClientPage.tsx @@ -1,11 +1,11 @@ "use client"; import { communityStateAtom } from "@/atoms/communitiesAtom"; -import About from "@/components/Community/about/About"; -import CreatePostLink from "@/components/Community/CreatePostLink"; -import CommunityHeader from "@/components/Community/community-header/CommunityHeader"; -import PageContent from "@/components/Layout/PageContent"; -import Posts from "@/components/Posts/Posts"; +import About from "@/components/community/about/About"; +import CreatePostLink from "@/components/community/CreatePostLink"; +import CommunityHeader from "@/components/community/community-header/CommunityHeader"; +import PageContent from "@/components/layout/PageContent"; +import Posts from "@/components/posts/Posts"; import { useAtom } from "jotai"; import React, { useEffect } from "react"; import { Community } from "@/types/community"; diff --git a/app/community/[communityId]/comments/[pid]/PostClientPage.tsx b/app/community/[communityId]/comments/[pid]/PostClientPage.tsx index 28d266a..6b79411 100644 --- a/app/community/[communityId]/comments/[pid]/PostClientPage.tsx +++ b/app/community/[communityId]/comments/[pid]/PostClientPage.tsx @@ -2,11 +2,11 @@ /* eslint-disable react-hooks/exhaustive-deps */ import { communityStateAtom } from "@/atoms/communitiesAtom"; -import About from "@/components/Community/about/About"; -import PageContent from "@/components/Layout/PageContent"; -import PostLoader from "@/components/Loaders/post-loader/PostLoader"; -import Comments from "@/components/Posts/Comments/Comments"; -import PostItem from "@/components/Posts/post-item/PostItem"; +import About from "@/components/community/about/About"; +import PageContent from "@/components/layout/PageContent"; +import PostLoader from "@/components/loaders/post-loader/PostLoader"; +import Comments from "@/components/posts/comments/Comments"; +import PostItem from "@/components/posts/post-item/PostItem"; import { auth } from "@/firebase/clientApp"; import useCommunityPermissions from "@/hooks/community/useCommunityPermissions"; import usePostState from "@/hooks/posts/usePostState"; diff --git a/app/community/[communityId]/submit/SubmitPostClientPage.tsx b/app/community/[communityId]/submit/SubmitPostClientPage.tsx index 1ecfb2a..cf32c1c 100644 --- a/app/community/[communityId]/submit/SubmitPostClientPage.tsx +++ b/app/community/[communityId]/submit/SubmitPostClientPage.tsx @@ -2,10 +2,10 @@ import { authModalStateAtom } from "@/atoms/authModalAtom"; import { communityStateAtom } from "@/atoms/communitiesAtom"; -import About from "@/components/Community/about/About"; -import PageContent from "@/components/Layout/PageContent"; -import AuthButtons from "@/components/Navbar/RightContent/AuthButtons"; -import NewPostForm from "@/components/Posts/new-post-form/NewPostForm"; +import About from "@/components/community/about/About"; +import PageContent from "@/components/layout/PageContent"; +import AuthButtons from "@/components/navbar/right-content/AuthButtons"; +import NewPostForm from "@/components/posts/new-post-form/NewPostForm"; import { auth } from "@/firebase/clientApp"; import { Box, Stack, Text } from "@chakra-ui/react"; import { useAtom, useSetAtom } from "jotai"; diff --git a/app/page.tsx b/app/page.tsx index f18c400..f04cf36 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,12 +1,12 @@ "use client"; /* eslint-disable react-hooks/exhaustive-deps */ -import CreatePostLink from "@/components/Community/CreatePostLink"; -import PersonalHome from "@/components/Community/PersonalHome"; -import Recommendations from "@/components/Community/recommendations/Recommendations"; -import PageContent from "@/components/Layout/PageContent"; -import PostLoader from "@/components/Loaders/post-loader/PostLoader"; -import PostItem from "@/components/Posts/post-item/PostItem"; +import CreatePostLink from "@/components/community/CreatePostLink"; +import PersonalHome from "@/components/community/PersonalHome"; +import Recommendations from "@/components/community/recommendations/Recommendations"; +import PageContent from "@/components/layout/PageContent"; +import PostLoader from "@/components/loaders/post-loader/PostLoader"; +import PostItem from "@/components/posts/post-item/PostItem"; import { auth, firestore } from "@/firebase/clientApp"; import useCommunityState from "@/hooks/community/useCommunityState"; import useCustomToast from "@/hooks/useCustomToast"; diff --git a/app/providers.tsx b/app/providers.tsx index 2c02f4c..64ba09a 100644 --- a/app/providers.tsx +++ b/app/providers.tsx @@ -2,7 +2,7 @@ import { ChakraProvider, Toaster } from "@chakra-ui/react"; import { theme } from "@/chakra/theme"; -import Layout from "@/components/Layout/Layout"; +import Layout from "@/components/layout/Layout"; import { Provider as JotaiProvider } from "jotai"; import { useEffect, useState } from "react"; import { toaster } from "@/hooks/useCustomToast"; diff --git a/components/Community/CreatePostLink.tsx b/components/community/CreatePostLink.tsx similarity index 100% rename from components/Community/CreatePostLink.tsx rename to components/community/CreatePostLink.tsx diff --git a/components/Community/NotFound.tsx b/components/community/NotFound.tsx similarity index 100% rename from components/Community/NotFound.tsx rename to components/community/NotFound.tsx diff --git a/components/Community/PersonalHome.tsx b/components/community/PersonalHome.tsx similarity index 96% rename from components/Community/PersonalHome.tsx rename to components/community/PersonalHome.tsx index cad9c9a..7ba7108 100644 --- a/components/Community/PersonalHome.tsx +++ b/components/community/PersonalHome.tsx @@ -3,7 +3,7 @@ import useCallCreatePost from "@/hooks/posts/useCallCreatePost"; import { Button, Flex, Image, Stack, Text } from "@chakra-ui/react"; import { useAtomValue } from "jotai"; import React, { useState } from "react"; -import CreateCommunityModal from "../Modal/CreateCommunity/CreateCommunityModal"; +import CreateCommunityModal from "../modal/create-community/CreateCommunityModal"; /** * Component for displaying card for creating a new community or post. diff --git a/components/Community/about/About.tsx b/components/community/about/About.tsx similarity index 96% rename from components/Community/about/About.tsx rename to components/community/about/About.tsx index d5293af..44cdb81 100644 --- a/components/Community/about/About.tsx +++ b/components/community/about/About.tsx @@ -3,7 +3,7 @@ import useCommunityState from "@/hooks/community/useCommunityState"; import { Box, Button, Flex, Stack } from "@chakra-ui/react"; import { useRouter } from "next/navigation"; import React, { useState } from "react"; -import CommunityMembersModal from "../../Modal/CommunityMembers/CommunityMembersModal"; +import CommunityMembersModal from "../../modal/community-members/CommunityMembersModal"; import AboutCommunity from "./AboutCommunity"; import AboutHeaderBar from "./AboutHeaderBar"; import AdminSectionAbout from "./AdminSectionAbout"; diff --git a/components/Community/about/AboutCommunity.tsx b/components/community/about/AboutCommunity.tsx similarity index 100% rename from components/Community/about/AboutCommunity.tsx rename to components/community/about/AboutCommunity.tsx diff --git a/components/Community/about/AboutHeaderBar.tsx b/components/community/about/AboutHeaderBar.tsx similarity index 100% rename from components/Community/about/AboutHeaderBar.tsx rename to components/community/about/AboutHeaderBar.tsx diff --git a/components/Community/about/AdminSectionAbout.tsx b/components/community/about/AdminSectionAbout.tsx similarity index 91% rename from components/Community/about/AdminSectionAbout.tsx rename to components/community/about/AdminSectionAbout.tsx index d710691..2ec9d75 100644 --- a/components/Community/about/AdminSectionAbout.tsx +++ b/components/community/about/AdminSectionAbout.tsx @@ -2,7 +2,7 @@ import React, { useState } from "react"; import { Community } from "@/types/community"; import { Button } from "@chakra-ui/react"; import useCommunityPermissions from "@/hooks/community/useCommunityPermissions"; -import CommunitySettingsModal from "@/components/Modal/CommunitySettings/CommunitySettings"; +import CommunitySettingsModal from "@/components/modal/community-settings/CommunitySettings"; type AdminSectionAboutProps = { communityData: Community; diff --git a/components/Community/community-header/CommunityHeader.tsx b/components/community/community-header/CommunityHeader.tsx similarity index 100% rename from components/Community/community-header/CommunityHeader.tsx rename to components/community/community-header/CommunityHeader.tsx diff --git a/components/Community/community-header/CommunityIcon.tsx b/components/community/community-header/CommunityIcon.tsx similarity index 100% rename from components/Community/community-header/CommunityIcon.tsx rename to components/community/community-header/CommunityIcon.tsx diff --git a/components/Community/community-header/CommunityMembersButton.tsx b/components/community/community-header/CommunityMembersButton.tsx similarity index 90% rename from components/Community/community-header/CommunityMembersButton.tsx rename to components/community/community-header/CommunityMembersButton.tsx index a9e35d8..0dd4f44 100644 --- a/components/Community/community-header/CommunityMembersButton.tsx +++ b/components/community/community-header/CommunityMembersButton.tsx @@ -1,6 +1,6 @@ import React, { useState } from "react"; import { IconButton, Icon } from "@chakra-ui/react"; -import CommunityMembersModal from "../../Modal/CommunityMembers/CommunityMembersModal"; +import CommunityMembersModal from "../../modal/community-members/CommunityMembersModal"; import { FiUsers } from "react-icons/fi"; type CommunityMembersButtonProps = { diff --git a/components/Community/community-header/CommunityName.tsx b/components/community/community-header/CommunityName.tsx similarity index 100% rename from components/Community/community-header/CommunityName.tsx rename to components/community/community-header/CommunityName.tsx diff --git a/components/Community/community-header/CommunitySettings.tsx b/components/community/community-header/CommunitySettings.tsx similarity index 94% rename from components/Community/community-header/CommunitySettings.tsx rename to components/community/community-header/CommunitySettings.tsx index 6ecd004..49a1203 100644 --- a/components/Community/community-header/CommunitySettings.tsx +++ b/components/community/community-header/CommunitySettings.tsx @@ -5,7 +5,7 @@ import { useParams } from "next/navigation"; import { useAuthState } from "react-firebase-hooks/auth"; import { auth } from "@/firebase/clientApp"; import { FiSettings } from "react-icons/fi"; -import CommunitySettingsModal from "../../Modal/CommunitySettings/CommunitySettings"; +import CommunitySettingsModal from "../../modal/community-settings/CommunitySettings"; import { Community } from "@/types/community"; type CommunitySettingsProps = { diff --git a/components/Community/community-header/JoinOrLeaveButton.tsx b/components/community/community-header/JoinOrLeaveButton.tsx similarity index 100% rename from components/Community/community-header/JoinOrLeaveButton.tsx rename to components/community/community-header/JoinOrLeaveButton.tsx diff --git a/components/Community/community-item/CommunityItem.tsx b/components/community/community-item/CommunityItem.tsx similarity index 100% rename from components/Community/community-item/CommunityItem.tsx rename to components/community/community-item/CommunityItem.tsx diff --git a/components/Community/community-item/CommunityItemButtonMembersSection.tsx b/components/community/community-item/CommunityItemButtonMembersSection.tsx similarity index 100% rename from components/Community/community-item/CommunityItemButtonMembersSection.tsx rename to components/community/community-item/CommunityItemButtonMembersSection.tsx diff --git a/components/Community/community-item/CommunityItemNameIconSection.tsx b/components/community/community-item/CommunityItemNameIconSection.tsx similarity index 100% rename from components/Community/community-item/CommunityItemNameIconSection.tsx rename to components/community/community-item/CommunityItemNameIconSection.tsx diff --git a/components/Community/recommendations/RecommendationRow.tsx b/components/community/recommendations/RecommendationRow.tsx similarity index 100% rename from components/Community/recommendations/RecommendationRow.tsx rename to components/community/recommendations/RecommendationRow.tsx diff --git a/components/Community/recommendations/Recommendations.tsx b/components/community/recommendations/Recommendations.tsx similarity index 100% rename from components/Community/recommendations/Recommendations.tsx rename to components/community/recommendations/Recommendations.tsx diff --git a/components/Community/recommendations/SuggestionsHeader.tsx b/components/community/recommendations/SuggestionsHeader.tsx similarity index 100% rename from components/Community/recommendations/SuggestionsHeader.tsx rename to components/community/recommendations/SuggestionsHeader.tsx diff --git a/components/Layout/GlobalHooks.tsx b/components/layout/GlobalHooks.tsx similarity index 100% rename from components/Layout/GlobalHooks.tsx rename to components/layout/GlobalHooks.tsx diff --git a/components/Layout/Layout.tsx b/components/layout/Layout.tsx similarity index 96% rename from components/Layout/Layout.tsx rename to components/layout/Layout.tsx index 96faca5..2d28503 100644 --- a/components/Layout/Layout.tsx +++ b/components/layout/Layout.tsx @@ -1,5 +1,5 @@ import React, { ReactNode } from "react"; -import Navbar from "../Navbar/Navbar"; +import Navbar from "../navbar/Navbar"; import GlobalHooks from "./GlobalHooks"; /** diff --git a/components/Layout/PageContent.tsx b/components/layout/PageContent.tsx similarity index 100% rename from components/Layout/PageContent.tsx rename to components/layout/PageContent.tsx diff --git a/components/Loaders/CommunityLoader.tsx b/components/loaders/CommunityLoader.tsx similarity index 100% rename from components/Loaders/CommunityLoader.tsx rename to components/loaders/CommunityLoader.tsx diff --git a/components/Loaders/post-loader/PostLoader.tsx b/components/loaders/post-loader/PostLoader.tsx similarity index 100% rename from components/Loaders/post-loader/PostLoader.tsx rename to components/loaders/post-loader/PostLoader.tsx diff --git a/components/Loaders/post-loader/PostLoaderItem.tsx b/components/loaders/post-loader/PostLoaderItem.tsx similarity index 100% rename from components/Loaders/post-loader/PostLoaderItem.tsx rename to components/loaders/post-loader/PostLoaderItem.tsx diff --git a/components/Modal/Auth/AuthInputs.tsx b/components/modal/auth/AuthInputs.tsx similarity index 100% rename from components/Modal/Auth/AuthInputs.tsx rename to components/modal/auth/AuthInputs.tsx diff --git a/components/Modal/Auth/AuthModal.tsx b/components/modal/auth/AuthModal.tsx similarity index 100% rename from components/Modal/Auth/AuthModal.tsx rename to components/modal/auth/AuthModal.tsx diff --git a/components/Modal/Auth/InputField.tsx b/components/modal/auth/InputField.tsx similarity index 100% rename from components/Modal/Auth/InputField.tsx rename to components/modal/auth/InputField.tsx diff --git a/components/Modal/Auth/Login.tsx b/components/modal/auth/Login.tsx similarity index 100% rename from components/Modal/Auth/Login.tsx rename to components/modal/auth/Login.tsx diff --git a/components/Modal/Auth/ResetPassword.tsx b/components/modal/auth/ResetPassword.tsx similarity index 100% rename from components/Modal/Auth/ResetPassword.tsx rename to components/modal/auth/ResetPassword.tsx diff --git a/components/Modal/Auth/Signup.tsx b/components/modal/auth/Signup.tsx similarity index 100% rename from components/Modal/Auth/Signup.tsx rename to components/modal/auth/Signup.tsx diff --git a/components/Modal/Auth/oauth-buttons/AuthButton.tsx b/components/modal/auth/oauth-buttons/AuthButton.tsx similarity index 100% rename from components/Modal/Auth/oauth-buttons/AuthButton.tsx rename to components/modal/auth/oauth-buttons/AuthButton.tsx diff --git a/components/Modal/Auth/oauth-buttons/ErrorMessage.tsx b/components/modal/auth/oauth-buttons/ErrorMessage.tsx similarity index 100% rename from components/Modal/Auth/oauth-buttons/ErrorMessage.tsx rename to components/modal/auth/oauth-buttons/ErrorMessage.tsx diff --git a/components/Modal/Auth/oauth-buttons/OAuthButtons.tsx b/components/modal/auth/oauth-buttons/OAuthButtons.tsx similarity index 100% rename from components/Modal/Auth/oauth-buttons/OAuthButtons.tsx rename to components/modal/auth/oauth-buttons/OAuthButtons.tsx diff --git a/components/Modal/CommunityMembers/CommunityMembersModal.tsx b/components/modal/community-members/CommunityMembersModal.tsx similarity index 100% rename from components/Modal/CommunityMembers/CommunityMembersModal.tsx rename to components/modal/community-members/CommunityMembersModal.tsx diff --git a/components/Modal/CommunitySettings/AdminManager.tsx b/components/modal/community-settings/AdminManager.tsx similarity index 100% rename from components/Modal/CommunitySettings/AdminManager.tsx rename to components/modal/community-settings/AdminManager.tsx diff --git a/components/Modal/CommunitySettings/CommunitySettings.tsx b/components/modal/community-settings/CommunitySettings.tsx similarity index 100% rename from components/Modal/CommunitySettings/CommunitySettings.tsx rename to components/modal/community-settings/CommunitySettings.tsx diff --git a/components/Modal/CommunitySettings/DangerZone.tsx b/components/modal/community-settings/DangerZone.tsx similarity index 100% rename from components/Modal/CommunitySettings/DangerZone.tsx rename to components/modal/community-settings/DangerZone.tsx diff --git a/components/Modal/CommunitySettings/ImageSettings.tsx b/components/modal/community-settings/ImageSettings.tsx similarity index 100% rename from components/Modal/CommunitySettings/ImageSettings.tsx rename to components/modal/community-settings/ImageSettings.tsx diff --git a/components/Modal/CommunitySettings/ModalFooter.tsx b/components/modal/community-settings/ModalFooter.tsx similarity index 100% rename from components/Modal/CommunitySettings/ModalFooter.tsx rename to components/modal/community-settings/ModalFooter.tsx diff --git a/components/Modal/CommunitySettings/PrivacySettings.tsx b/components/modal/community-settings/PrivacySettings.tsx similarity index 100% rename from components/Modal/CommunitySettings/PrivacySettings.tsx rename to components/modal/community-settings/PrivacySettings.tsx diff --git a/components/Modal/CommunitySettings/index.ts b/components/modal/community-settings/index.ts similarity index 100% rename from components/Modal/CommunitySettings/index.ts rename to components/modal/community-settings/index.ts diff --git a/components/Modal/CreateCommunity/CommunityNameSection.tsx b/components/modal/create-community/CommunityNameSection.tsx similarity index 100% rename from components/Modal/CreateCommunity/CommunityNameSection.tsx rename to components/modal/create-community/CommunityNameSection.tsx diff --git a/components/Modal/CreateCommunity/CommunityTypeOption.tsx b/components/modal/create-community/CommunityTypeOption.tsx similarity index 100% rename from components/Modal/CreateCommunity/CommunityTypeOption.tsx rename to components/modal/create-community/CommunityTypeOption.tsx diff --git a/components/Modal/CreateCommunity/CommunityTypeOptions.tsx b/components/modal/create-community/CommunityTypeOptions.tsx similarity index 100% rename from components/Modal/CreateCommunity/CommunityTypeOptions.tsx rename to components/modal/create-community/CommunityTypeOptions.tsx diff --git a/components/Modal/CreateCommunity/CreateCommunityModal.tsx b/components/modal/create-community/CreateCommunityModal.tsx similarity index 100% rename from components/Modal/CreateCommunity/CreateCommunityModal.tsx rename to components/modal/create-community/CreateCommunityModal.tsx diff --git a/components/Modal/Profile/ProfileModal.tsx b/components/modal/profile/ProfileModal.tsx similarity index 100% rename from components/Modal/Profile/ProfileModal.tsx rename to components/modal/profile/ProfileModal.tsx diff --git a/components/Modal/Profile/UserImageSection.tsx b/components/modal/profile/UserImageSection.tsx similarity index 100% rename from components/Modal/Profile/UserImageSection.tsx rename to components/modal/profile/UserImageSection.tsx diff --git a/components/Modal/Profile/UserInfoSection.tsx b/components/modal/profile/UserInfoSection.tsx similarity index 100% rename from components/Modal/Profile/UserInfoSection.tsx rename to components/modal/profile/UserInfoSection.tsx diff --git a/components/Modal/SavedPosts/SavedPostsModal.tsx b/components/modal/saved-posts/SavedPostsModal.tsx similarity index 100% rename from components/Modal/SavedPosts/SavedPostsModal.tsx rename to components/modal/saved-posts/SavedPostsModal.tsx diff --git a/components/Navbar/Navbar.tsx b/components/navbar/Navbar.tsx similarity index 91% rename from components/Navbar/Navbar.tsx rename to components/navbar/Navbar.tsx index cd1ba54..8cbec90 100644 --- a/components/Navbar/Navbar.tsx +++ b/components/navbar/Navbar.tsx @@ -4,8 +4,8 @@ import useDirectory from "@/hooks/useDirectory"; import { Flex, Image, Text } from "@chakra-ui/react"; import React from "react"; import { useAuthState } from "react-firebase-hooks/auth"; -import Directory from "./Directory/Directory"; -import RightContent from "./RightContent/RightContent"; +import Directory from "./directory/Directory"; +import RightContent from "./right-content/RightContent"; import SearchInput from "./SearchInput"; /** @@ -28,9 +28,9 @@ import SearchInput from "./SearchInput"; * - User menu with different options * @returns {React.FC} - Navbar component * - * @requires ./RightContent - content displaying authentication buttons or actions + * @requires ./right-content - content displaying authentication buttons or actions * @requires ./SearchInput - Search field - * @requires ./Directory - showing community menu button + * @requires ./directory - showing community menu button */ const Navbar: React.FC = () => { const [user, loading, error] = useAuthState(auth); // will be passed to child components diff --git a/components/Navbar/SearchInput.tsx b/components/navbar/SearchInput.tsx similarity index 100% rename from components/Navbar/SearchInput.tsx rename to components/navbar/SearchInput.tsx diff --git a/components/Navbar/SearchModal.tsx b/components/navbar/SearchModal.tsx similarity index 100% rename from components/Navbar/SearchModal.tsx rename to components/navbar/SearchModal.tsx diff --git a/components/Navbar/Directory/Communities.tsx b/components/navbar/directory/Communities.tsx similarity index 100% rename from components/Navbar/Directory/Communities.tsx rename to components/navbar/directory/Communities.tsx diff --git a/components/Navbar/Directory/Directory.tsx b/components/navbar/directory/Directory.tsx similarity index 97% rename from components/Navbar/Directory/Directory.tsx rename to components/navbar/directory/Directory.tsx index c161013..859d547 100644 --- a/components/Navbar/Directory/Directory.tsx +++ b/components/navbar/directory/Directory.tsx @@ -13,7 +13,7 @@ import { } from "@chakra-ui/react"; import React, { useState } from "react"; import Communities from "./Communities"; -import CreateCommunityModal from "@/components/Modal/CreateCommunity/CreateCommunityModal"; +import CreateCommunityModal from "@/components/modal/create-community/CreateCommunityModal"; /** * Component for displaying the directory menu. diff --git a/components/Navbar/Directory/MenuListItem.tsx b/components/navbar/directory/MenuListItem.tsx similarity index 100% rename from components/Navbar/Directory/MenuListItem.tsx rename to components/navbar/directory/MenuListItem.tsx diff --git a/components/Navbar/RightContent/AuthButtons.tsx b/components/navbar/right-content/AuthButtons.tsx similarity index 100% rename from components/Navbar/RightContent/AuthButtons.tsx rename to components/navbar/right-content/AuthButtons.tsx diff --git a/components/Navbar/RightContent/Icons.tsx b/components/navbar/right-content/Icons.tsx similarity index 100% rename from components/Navbar/RightContent/Icons.tsx rename to components/navbar/right-content/Icons.tsx diff --git a/components/Navbar/RightContent/LogOutButton.tsx b/components/navbar/right-content/LogOutButton.tsx similarity index 100% rename from components/Navbar/RightContent/LogOutButton.tsx rename to components/navbar/right-content/LogOutButton.tsx diff --git a/components/Navbar/RightContent/RightContent.tsx b/components/navbar/right-content/RightContent.tsx similarity index 91% rename from components/Navbar/RightContent/RightContent.tsx rename to components/navbar/right-content/RightContent.tsx index 635fb54..8e7f10a 100644 --- a/components/Navbar/RightContent/RightContent.tsx +++ b/components/navbar/right-content/RightContent.tsx @@ -1,5 +1,5 @@ -import AuthModal from "@/components/Modal/Auth/AuthModal"; -import SavedPostsModal from "@/components/Modal/SavedPosts/SavedPostsModal"; +import AuthModal from "@/components/modal/auth/AuthModal"; +import SavedPostsModal from "@/components/modal/saved-posts/SavedPostsModal"; import { Flex } from "@chakra-ui/react"; import { User } from "firebase/auth"; import React from "react"; diff --git a/components/Navbar/RightContent/user-menu/UserMenu.tsx b/components/navbar/right-content/user-menu/UserMenu.tsx similarity index 96% rename from components/Navbar/RightContent/user-menu/UserMenu.tsx rename to components/navbar/right-content/user-menu/UserMenu.tsx index 63317a8..7072efa 100644 --- a/components/Navbar/RightContent/user-menu/UserMenu.tsx +++ b/components/navbar/right-content/user-menu/UserMenu.tsx @@ -1,4 +1,4 @@ -import ProfileModal from "@/components/Modal/Profile/ProfileModal"; +import ProfileModal from "@/components/modal/profile/ProfileModal"; import { MenuPositioner, MenuRoot } from "@chakra-ui/react"; import { User } from "firebase/auth"; import React, { useState } from "react"; diff --git a/components/Navbar/RightContent/user-menu/UserMenuButton.tsx b/components/navbar/right-content/user-menu/UserMenuButton.tsx similarity index 100% rename from components/Navbar/RightContent/user-menu/UserMenuButton.tsx rename to components/navbar/right-content/user-menu/UserMenuButton.tsx diff --git a/components/Navbar/RightContent/user-menu/UserMenuList.tsx b/components/navbar/right-content/user-menu/UserMenuList.tsx similarity index 100% rename from components/Navbar/RightContent/user-menu/UserMenuList.tsx rename to components/navbar/right-content/user-menu/UserMenuList.tsx diff --git a/components/Posts/Posts.tsx b/components/posts/Posts.tsx similarity index 98% rename from components/Posts/Posts.tsx rename to components/posts/Posts.tsx index 0ad2f42..d7f49fc 100644 --- a/components/Posts/Posts.tsx +++ b/components/posts/Posts.tsx @@ -11,7 +11,7 @@ import usePostsFeed from "@/hooks/posts/usePostsFeed"; import { Box, Spinner, Stack, Text } from "@chakra-ui/react"; import React, { useEffect } from "react"; import { useAuthState } from "react-firebase-hooks/auth"; -import PostLoader from "../Loaders/post-loader/PostLoader"; +import PostLoader from "../loaders/post-loader/PostLoader"; import PostItem from "./post-item/PostItem"; /** diff --git a/components/Posts/Comments/CommentInput.tsx b/components/posts/comments/CommentInput.tsx similarity index 96% rename from components/Posts/Comments/CommentInput.tsx rename to components/posts/comments/CommentInput.tsx index 2d18470..6ebb2a3 100644 --- a/components/Posts/Comments/CommentInput.tsx +++ b/components/posts/comments/CommentInput.tsx @@ -1,5 +1,5 @@ -import ProfileModal from "@/components/Modal/Profile/ProfileModal"; -import AuthButtons from "@/components/Navbar/RightContent/AuthButtons"; +import ProfileModal from "@/components/modal/profile/ProfileModal"; +import AuthButtons from "@/components/navbar/right-content/AuthButtons"; import { Flex, Textarea, Button, Text, Stack } from "@chakra-ui/react"; import { User } from "firebase/auth"; import React, { useState } from "react"; diff --git a/components/Posts/Comments/CommentItem.tsx b/components/posts/comments/CommentItem.tsx similarity index 100% rename from components/Posts/Comments/CommentItem.tsx rename to components/posts/comments/CommentItem.tsx diff --git a/components/Posts/Comments/Comments.tsx b/components/posts/comments/Comments.tsx similarity index 100% rename from components/Posts/Comments/Comments.tsx rename to components/posts/comments/Comments.tsx diff --git a/components/Posts/new-post-form/BackToCommunityButton.tsx b/components/posts/new-post-form/BackToCommunityButton.tsx similarity index 100% rename from components/Posts/new-post-form/BackToCommunityButton.tsx rename to components/posts/new-post-form/BackToCommunityButton.tsx diff --git a/components/Posts/new-post-form/NewPostForm.tsx b/components/posts/new-post-form/NewPostForm.tsx similarity index 100% rename from components/Posts/new-post-form/NewPostForm.tsx rename to components/posts/new-post-form/NewPostForm.tsx diff --git a/components/Posts/new-post-form/PostBody.tsx b/components/posts/new-post-form/PostBody.tsx similarity index 92% rename from components/Posts/new-post-form/PostBody.tsx rename to components/posts/new-post-form/PostBody.tsx index 3e6b355..9c6cc1b 100644 --- a/components/Posts/new-post-form/PostBody.tsx +++ b/components/posts/new-post-form/PostBody.tsx @@ -1,7 +1,7 @@ import React from "react"; import { Flex } from "@chakra-ui/react"; -import TextInputs from "../PostForm/TextInputs"; -import ImageUpload from "../PostForm/ImageUpload"; +import TextInputs from "../post-form/TextInputs"; +import ImageUpload from "../post-form/ImageUpload"; type PostBodyProps = { selectedTab: string; diff --git a/components/Posts/new-post-form/PostCreateError.tsx b/components/posts/new-post-form/PostCreateError.tsx similarity index 100% rename from components/Posts/new-post-form/PostCreateError.tsx rename to components/posts/new-post-form/PostCreateError.tsx diff --git a/components/Posts/new-post-form/TabItem.tsx b/components/posts/new-post-form/TabItem.tsx similarity index 100% rename from components/Posts/new-post-form/TabItem.tsx rename to components/posts/new-post-form/TabItem.tsx diff --git a/components/Posts/new-post-form/TabList.tsx b/components/posts/new-post-form/TabList.tsx similarity index 100% rename from components/Posts/new-post-form/TabList.tsx rename to components/posts/new-post-form/TabList.tsx diff --git a/components/Posts/PostForm/ImageUpload.tsx b/components/posts/post-form/ImageUpload.tsx similarity index 100% rename from components/Posts/PostForm/ImageUpload.tsx rename to components/posts/post-form/ImageUpload.tsx diff --git a/components/Posts/PostForm/TextInputs.tsx b/components/posts/post-form/TextInputs.tsx similarity index 100% rename from components/Posts/PostForm/TextInputs.tsx rename to components/posts/post-form/TextInputs.tsx diff --git a/components/Posts/post-item/PostActions.tsx b/components/posts/post-item/PostActions.tsx similarity index 100% rename from components/Posts/post-item/PostActions.tsx rename to components/posts/post-item/PostActions.tsx diff --git a/components/Posts/post-item/PostBody.tsx b/components/posts/post-item/PostBody.tsx similarity index 100% rename from components/Posts/post-item/PostBody.tsx rename to components/posts/post-item/PostBody.tsx diff --git a/components/Posts/post-item/PostDetails.tsx b/components/posts/post-item/PostDetails.tsx similarity index 100% rename from components/Posts/post-item/PostDetails.tsx rename to components/posts/post-item/PostDetails.tsx diff --git a/components/Posts/post-item/PostItem.tsx b/components/posts/post-item/PostItem.tsx similarity index 100% rename from components/Posts/post-item/PostItem.tsx rename to components/posts/post-item/PostItem.tsx diff --git a/components/Posts/post-item/PostTitle.tsx b/components/posts/post-item/PostTitle.tsx similarity index 100% rename from components/Posts/post-item/PostTitle.tsx rename to components/posts/post-item/PostTitle.tsx diff --git a/components/Posts/post-item/VoteSection.tsx b/components/posts/post-item/VoteSection.tsx similarity index 100% rename from components/Posts/post-item/VoteSection.tsx rename to components/posts/post-item/VoteSection.tsx