Skip to content

Commit

Permalink
Remove footer ads banner section
Browse files Browse the repository at this point in the history
  • Loading branch information
Kei-K23 committed Jun 19, 2024
1 parent a71ef42 commit a31e11e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ We welcome contributions from the community! If you find a bug or have an idea f
This is the todo list to complete for version 1.

- [ ] Add errors management
- [ ] Update user leaderboard status design
- [ ] Add features private profile and profile view count
- [ ] Add skeleton and waiting loading animation or style when fetching data
- [ ] Update UI design
- [x] Add features private profile and profile view count
- [ ] Apply pagination and limiting fetching for comments from Firebase
- [ ] Add blogs system
- [ ] Add user friend system
- [ ] Add point gift system to send points from one account to another
- [ ] Avatar system that users can buy avatars with their points

## License

Expand Down
14 changes: 1 addition & 13 deletions src/components/mobile-side-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,20 @@

import React from "react";
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import Link from "next/link";
import { Button } from "./ui/button";
import { Goal, Home, Medal, Menu, Store, User, X } from "lucide-react";
import { Goal, Home, Medal, Menu, Store, User } from "lucide-react";
import Image from "next/image";
import { usePathname } from "next/navigation";
import { cn } from "@/lib/utils";
import { Badge } from "./ui/badge";
import ActionTooltip from "./action-tooltip";
import { useFooterCardStore } from "@/store/use-footer-card-store";
import AdsCard from "./ads-card";

type MobileSideBarProps = {
completedQuestsLength: number;
};

const MobileSideBar = ({ completedQuestsLength }: MobileSideBarProps) => {
const pathname = usePathname();
const { isOpen, close } = useFooterCardStore();

return (
<Sheet>
Expand Down Expand Up @@ -97,7 +86,6 @@ const MobileSideBar = ({ completedQuestsLength }: MobileSideBarProps) => {
Profile
</Link>
</nav>
{isOpen && <AdsCard />}
</SheetContent>
</Sheet>
);
Expand Down
6 changes: 0 additions & 6 deletions src/components/side-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@
import { Goal, Home, Medal, Store, User, X } from "lucide-react";
import Link from "next/link";
import React from "react";
import { Button } from "./ui/button";
import { Card, CardDescription, CardHeader, CardTitle } from "./ui/card";
import Image from "next/image";
import { usePathname } from "next/navigation";
import { cn } from "@/lib/utils";
import { Badge } from "./ui/badge";
import ActionTooltip from "./action-tooltip";
import { useFooterCardStore } from "@/store/use-footer-card-store";
import AdsCard from "./ads-card";

type SideBarProps = {
completedQuestsLength: number;
};

const SideBar = ({ completedQuestsLength }: SideBarProps) => {
const pathname = usePathname();
const { isOpen, close } = useFooterCardStore();

return (
<div className=" hidden border-r bg-muted/40 md:block">
Expand Down Expand Up @@ -85,7 +80,6 @@ const SideBar = ({ completedQuestsLength }: SideBarProps) => {
</Link>
</nav>
</div>
{isOpen && <AdsCard />}
</div>
</div>
);
Expand Down

0 comments on commit a31e11e

Please sign in to comment.