-
Notifications
You must be signed in to change notification settings - Fork 2
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/ppi 976 new ecommerce methods #16
Conversation
b5e2b7b
to
83522e5
Compare
|
||
type Props = { | ||
product: Product | null | ||
open: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe isOpen
instead of open
? I think that verbs should describe functions as in the next line "close".
example/src/pages/CustomEvent.tsx
Outdated
import Paper from '@mui/material/Paper' | ||
|
||
const CustomEventPage: FunctionComponent = () => { | ||
const [finish, setFinish] = React.useState(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you importing "useEffect" but "useState" don't?
]); | ||
export function updateEcommerceCart( | ||
products: Product[], | ||
grandTotal: number | string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about reusing PaymentInformation
and doing it this way PaymentInformation['grandTotal']
package.json
Outdated
@@ -20,43 +20,43 @@ | |||
"test:lint": "eslint .", | |||
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom", | |||
"test:watch": "react-scripts test --env=jsdom", | |||
"predeploy": "cd example && yarn install && yarn run build", | |||
"deploy": "gh-pages -d example/build" | |||
"predeploy": "cd example-old && yarn install && yarn run build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why wasn't the old example deleted? And what about the new example?
No description provided.