-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
103 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
import React from 'react' | ||
import type { Metadata } from 'next'; | ||
import { notFound } from 'next/navigation'; | ||
import CreateNewPlanPage from './_components/CreateNewPlanPage'; | ||
import type { Metadata } from "next"; | ||
import { notFound } from "next/navigation"; | ||
import React from "react"; | ||
|
||
import CreateNewPlanPage from "./_components/CreateNewPlanPage"; | ||
|
||
interface PageProps { | ||
params: Promise<{ id: string }>; | ||
} | ||
|
||
export const metadata: Metadata = { | ||
title: "Kreator planu" | ||
} | ||
title: "Kreator planu", | ||
}; | ||
|
||
export default async function CreateNewPlan({ params }: PageProps) { | ||
const { id } = await params; | ||
if (!id || typeof id !== 'string' || id.length === 0) { | ||
return notFound() | ||
if (!id || typeof id !== "string" || id.length === 0) { | ||
return notFound(); | ||
} | ||
|
||
return ( | ||
<CreateNewPlanPage planId={id} /> | ||
) | ||
return <CreateNewPlanPage planId={id} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
import React from 'react' | ||
import type { Metadata } from 'next'; | ||
import { notFound } from 'next/navigation'; | ||
import SharePlanPage from './_components/SharePlanPage'; | ||
import type { Metadata } from "next"; | ||
import { notFound } from "next/navigation"; | ||
import React from "react"; | ||
|
||
import SharePlanPage from "./_components/SharePlanPage"; | ||
|
||
interface PageProps { | ||
params: Promise<{ id: string }>; | ||
} | ||
|
||
export const metadata: Metadata = { | ||
title: "Podgląd planu" | ||
} | ||
title: "Podgląd planu", | ||
}; | ||
|
||
export default async function SharePlan({ params }: PageProps) { | ||
const { id } = await params; | ||
if (!id || typeof id !== 'string' || id.length === 0) { | ||
return notFound() | ||
if (!id || typeof id !== "string" || id.length === 0) { | ||
return notFound(); | ||
} | ||
|
||
return ( | ||
<SharePlanPage planId={id} /> | ||
) | ||
return <SharePlanPage planId={id} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.