Skip to content

Commit

Permalink
View more button Enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielEmmanuel1 committed Nov 19, 2024
1 parent 8785fb6 commit 5f0cda0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 202 deletions.
193 changes: 0 additions & 193 deletions src/components/pages/dashboard/channels/ChannelSection.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/pages/dashboard/channels/ViewMoreModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,6 @@ const ViewMoreModal: React.FC<ViewMoreModalProps> = ({
Loading more items...
</div>
)}

{/* End of list indicator */}
{!hasMore && data.length > 0 && (
<div className="py-4 text-center text-gray-500">
No more items to load
</div>
)}
</div>

{/* Modal footer */}
Expand Down
3 changes: 1 addition & 2 deletions src/components/pages/dashboard/home/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import CreateChannelModal from "@/components/modals/channels/Creation";
import LogoWithText from "../../../../assets/logoAnimate.svg";
import HomeSection from "./section";
import ManageAdmins from "../admins/ManageAdmins";
import ChannelSection from "../channels/ChannelSection";
import { AuthContext } from "@/context/AuthContext";
import { HomeDataResponse } from "./response";
import apiUrl from "@/data/axios";
Expand Down Expand Up @@ -95,7 +94,7 @@ const HomePage: React.FC = () => {
<br />
</>
)}
<ChannelSection />

{createPortal(
<CreateChannelModal open={isOpen} data={homeData} onOpenChange={setIsOpen} />,
document.body
Expand Down

0 comments on commit 5f0cda0

Please sign in to comment.