diff --git a/src/app/api/scrape/route.ts b/src/app/api/scrape/route.ts index 91a3918..e563407 100644 --- a/src/app/api/scrape/route.ts +++ b/src/app/api/scrape/route.ts @@ -6,8 +6,6 @@ export const POST = withBody(async (_req, body) => { try { const result = await scrapeTokopediaProduct(body.url); - console.log(result); - return NextResponse.json({ success: true, data: result, diff --git a/src/app/api/word-cloud/route.ts b/src/app/api/word-cloud/route.ts index f801671..cd5bbfd 100644 --- a/src/app/api/word-cloud/route.ts +++ b/src/app/api/word-cloud/route.ts @@ -8,8 +8,6 @@ export const GET = withAuth(async (_req, _context, session) => { const allKeywords = await wordCloudService(email); - console.log(allKeywords); - return NextResponse.json( { success: true, data: allKeywords }, { status: 200 }, diff --git a/src/app/profile/page.tsx b/src/app/profile/page.tsx index 1277617..2ad00d4 100644 --- a/src/app/profile/page.tsx +++ b/src/app/profile/page.tsx @@ -1,3 +1,4 @@ +import Footer from "@/src/components/dashboards/Footer"; import { Header } from "@/src/components/dashboards/Header"; import ProfileClient from "@/src/components/dashboards/ProfileClient"; @@ -6,6 +7,7 @@ export default async function ProfilePage() {
+
); } diff --git a/src/components/dashboards/Header.tsx b/src/components/dashboards/Header.tsx index 8a86c7b..676c8a0 100644 --- a/src/components/dashboards/Header.tsx +++ b/src/components/dashboards/Header.tsx @@ -21,8 +21,7 @@ import { useHeader } from "@/src/hooks/useHeader"; import { useDashboards } from "@/src/hooks/useDashboard"; export function Header() { - const { open, setOpen, session, mounted, productCount } = - useHeader(); + const { open, setOpen, session, mounted, productCount } = useHeader(); const { totalReviews } = useDashboards(); if (!mounted) return null; @@ -56,7 +55,7 @@ export function Header() {
setOpen(true)}> - +
{`Hi, ${session.data?.user?.name || "Guest"}`} diff --git a/src/components/dashboards/ProfileCard.tsx b/src/components/dashboards/ProfileCard.tsx index 7ab1822..f218600 100644 --- a/src/components/dashboards/ProfileCard.tsx +++ b/src/components/dashboards/ProfileCard.tsx @@ -71,7 +71,7 @@ export default function ProfileCard(props: ProfileClientProps) {
); } diff --git a/src/components/dashboards/ProfileModal.tsx b/src/components/dashboards/ProfileModal.tsx index f3f8516..1276281 100644 --- a/src/components/dashboards/ProfileModal.tsx +++ b/src/components/dashboards/ProfileModal.tsx @@ -42,7 +42,7 @@ export const ProfileModal = ({ >
@@ -260,7 +260,7 @@ export const ProfileModal = ({
-
+