From c3589dfb3d175ca22adfc6b6b71d43e64fe2f562 Mon Sep 17 00:00:00 2001 From: Moh Ravi Dwi Putra Date: Wed, 18 Oct 2023 14:37:07 +0700 Subject: [PATCH] Optimize import --- src/app/meta-data.tsx | 1 - src/app/portfolio/[slug]/page.tsx | 2 -- src/components/layouts/section-list.tsx | 4 +++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/meta-data.tsx b/src/app/meta-data.tsx index 209e880..bbc5853 100644 --- a/src/app/meta-data.tsx +++ b/src/app/meta-data.tsx @@ -3,7 +3,6 @@ import React from "react"; import {WEBSITE_DESCRIPTION, WEBSITE_KEYWORDS} from "@/data/constant/meta-data"; import defaultImage from "../assets/image/avatar.png"; import {description} from "@/data/about"; -import {useRouter} from 'next/router'; interface MetaDataProps { title: string; diff --git a/src/app/portfolio/[slug]/page.tsx b/src/app/portfolio/[slug]/page.tsx index 40d7fbe..b0ec43e 100644 --- a/src/app/portfolio/[slug]/page.tsx +++ b/src/app/portfolio/[slug]/page.tsx @@ -1,5 +1,3 @@ -'use client' - import React from "react"; import {portfolioData} from "@/data/portfolio"; import Section from "@/components/layouts/section"; diff --git a/src/components/layouts/section-list.tsx b/src/components/layouts/section-list.tsx index 1123380..71dd689 100644 --- a/src/components/layouts/section-list.tsx +++ b/src/components/layouts/section-list.tsx @@ -6,7 +6,9 @@ interface item { interface ListSectionProps { title: string; - items: item[]; + items: { + name: string + }[]; } const ListSection: React.FC = ({title, items}) => {