Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/PPPSYS-43233 server components support #20

Merged
merged 30 commits into from
Oct 16, 2023

Conversation

lysy-vlc
Copy link
Contributor

Updated all of the packages, must important: react, next, react-piwik-pro. Now able to use piwik pro in server components. Created new examples directory for next version >13
Task

@lysy-vlc lysy-vlc requested a review from mmalczewski October 13, 2023 18:29
@lysy-vlc lysy-vlc merged commit e4e41b8 into master Oct 16, 2023
1 check passed
import {PageData} from '@/types/pageData'
import CustomDimensionResults from '@/src/components/CustomDimensions/CustomDimensionResults'
import Head from 'next/head'
import utilStyles from '../../styles/utils.module.css'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In example/app/CustomEvent/page.tsx file we have absolute import for CSS file, but here is a relative. Maybe we should keep one way to imports?

return (
<>
<Head>
<title>Piwik Pro - Nextjs 13 examples</title>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a small detail but should be "Piwik PRO" instead of "Piwik Pro" 😝

const eCommerceExamples: FunctionComponent = () => {
const {eCommerce} = usePiwikPro()

const [eCommerceItems, setECommerceInfo] = useState<any>('')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two mismatch names "items" and "info" for the same state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants