-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat: implement payment #75
Conversation
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.
LGTM!
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.
LGTM
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.
Overall, your implementation looks very nice. Based on sonarcloud analysis, it seems that your code produces several code smells, I hope you can fix it before merging for better maintainability.
src/app/package/page.tsx
Outdated
const features: (keyof PackageDetailResponse)[] = [ | ||
'event_planner', | ||
'event_tracker', | ||
'event_timeline', | ||
'event_rundown', | ||
'ai_assistant', | ||
] | ||
useEffect(() => { | ||
if (!!data) { |
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.
Based on analysis on sonarcloud, this type of redundant double negation will cause code smell on our codes. I get that you want to cast it to boolean, but perhaps to minimize the amount of code smells, it's better to not use double negation.
The reason for this could be seen here:
https://sonarcloud.io/organizations/reveliostartup/rules?open=typescript%3AS6509&rule_key=typescript%3AS6509
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.
okay, thanks for the info
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.
LGTM Now!
In this PR, I have implemented the integration of payment and transaction api.
This allows user to buy our premium package.
I also have done some refactoring for some of the elements's styling and remove unused component.