Skip to content

Commit

Permalink
pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lysy-vlc committed Jan 8, 2024
1 parent 3c593f4 commit c89448f
Show file tree
Hide file tree
Showing 8 changed files with 2,068 additions and 309 deletions.
3 changes: 1 addition & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Piwik Pro + Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
Expand Down
26 changes: 13 additions & 13 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions example/src/components/ECommerce/ProductDetailView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import {

type Props = {
product: Product | null
open: boolean
isOpen: boolean
close: () => void
}

const ProductDetailView: FunctionComponent<Props> = ({
product,
open,
isOpen,
close
}) => {
return (
<Dialog onClose={close} open={open}>
<Dialog onClose={close} open={isOpen}>
{product && (
<Grid container>
<Paper
Expand Down
6 changes: 3 additions & 3 deletions example/src/pages/CustomEvent.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import Box from '@mui/material/Box'
import Button from '@mui/material/Button'
import Typography from '@mui/material/Typography'
import React, { FunctionComponent, useEffect } from 'react'
import { FunctionComponent, useEffect, useState } from 'react'
import AddressForm from '../components/CustomEvent/AddressForm.tsx'
import { CustomEvent } from '@piwikpro/react-piwik-pro'
import { useSnackbar } from 'notistack'
import Paper from '@mui/material/Paper'

const CustomEventPage: FunctionComponent = () => {
const [finish, setFinish] = React.useState(false)
const [finish, setFinish] = useState(false)
const { enqueueSnackbar } = useSnackbar()

useEffect(() => {
document.title = 'Custom Event'
})
}, [])

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion example/src/pages/ECommerce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ const ECommercePage: FunctionComponent = () => {
</Grid>
<ProductDetailView
product={selectedProduct}
open={productDetailViewOpen}
isOpen={productDetailViewOpen}
close={() => setProductDetailViewOpen(false)}
/>
</Grid>
Expand Down
Loading

0 comments on commit c89448f

Please sign in to comment.