From c3fef674808ae6a99c33e69d6a82f8fa2d31e4ca Mon Sep 17 00:00:00 2001 From: itizawa Date: Wed, 20 Dec 2023 01:49:19 +0900 Subject: [PATCH] fix --- src/app/[slug]/[date]/page.tsx | 2 +- .../domains/Nippo/NippoShareIcon/NippoShareIcon.tsx | 10 ++++++---- src/app/_constants/urls.ts | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/[slug]/[date]/page.tsx b/src/app/[slug]/[date]/page.tsx index a133619..8f17377 100644 --- a/src/app/[slug]/[date]/page.tsx +++ b/src/app/[slug]/[date]/page.tsx @@ -34,7 +34,7 @@ export default async function Page({ params }: Props) {

{dateString}

- {nippo && } + {nippo && }
{currentUser?._id === objective.createdUserId ? ( diff --git a/src/app/_components/domains/Nippo/NippoShareIcon/NippoShareIcon.tsx b/src/app/_components/domains/Nippo/NippoShareIcon/NippoShareIcon.tsx index 7daac37..063ced0 100644 --- a/src/app/_components/domains/Nippo/NippoShareIcon/NippoShareIcon.tsx +++ b/src/app/_components/domains/Nippo/NippoShareIcon/NippoShareIcon.tsx @@ -4,14 +4,16 @@ import { Button, Link } from '@nextui-org/react'; import { format } from 'date-fns'; import { Icon } from '~/app/_components/uiParts/icons'; +import { URLS } from '~/app/_constants/urls'; import { Nippo } from '~/domains/Nippo'; -export const NippoShareIcon = ({ nippo }: { nippo: Nippo }) => { +export const NippoShareIcon = ({ slug, nippo }: { slug: string; nippo: Nippo }) => { return ( diff --git a/src/app/_constants/urls.ts b/src/app/_constants/urls.ts index 8f7d08f..dadf045 100644 --- a/src/app/_constants/urls.ts +++ b/src/app/_constants/urls.ts @@ -7,5 +7,6 @@ export const URLS = { SLUG_DATE: (slug: string, date: string) => `/${slug}/${date}`, TERM: `${frontUrl}/terms`, POLICY: `${frontUrl}/policy`, + SHARE_NIPPO: (slug: string, date: string) => `${frontUrl}/${slug}/${date}`, LOGIN_TO_BACKEND: `${serverUrl}/auth/google`, };