diff --git a/app/phn-header/page.tsx b/app/phn-header/page.tsx index 2b396b7..e365d4c 100644 --- a/app/phn-header/page.tsx +++ b/app/phn-header/page.tsx @@ -1,19 +1,19 @@ 'use client'; import { PButton, PIcon, PLinkPure } from '@porsche-design-system/components-react/ssr'; -import React, { useEffect } from 'react'; -import { defineCustomElements } from '@porschehn/navigation/loader'; +import React from 'react'; +// import { defineCustomElements } from '@porschehn/navigation/loader'; export default function PhnHeaderPage() { - useEffect(() => { - if (typeof window !== 'undefined') { - defineCustomElements(window); - } - }, []); + // useEffect(() => { + // if (typeof window !== 'undefined') { + // defineCustomElements(window); + // } + // }, []); return ( <> - + {/**/}
Some PButton diff --git a/components/header.tsx b/components/header.tsx index 4cc66bd..7b0a7ae 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -2,7 +2,7 @@ import { PDivider, PHeadline } from '@porsche-design-system/components-react/ssr import React from 'react'; import { PrefixedLink } from './prefixedLink'; -export const Header = (): JSX.Element => ( +export const Header = () => ( <> Example usage of the Porsche-Design-System NextJS diff --git a/components/prefixedLink.tsx b/components/prefixedLink.tsx index 0b12b16..ee2aba0 100644 --- a/components/prefixedLink.tsx +++ b/components/prefixedLink.tsx @@ -2,7 +2,7 @@ import { PLinkPure } from '@porsche-design-system/components-react/ssr'; import Link, { LinkProps } from 'next/link'; import React, { PropsWithChildren } from 'react'; -export const PrefixedLink = ({ href, ...props }: PropsWithChildren): JSX.Element => ( +export const PrefixedLink = ({ href, ...props }: PropsWithChildren) => (