You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file src/blocks/illustrations/index.ts, there seem to be a typo in the import statement for the Cross component. It is imported from 'blocks' but should be imported from 'blocks/notification'.
In the same file src/blocks/illustrations/index.ts, there is a missing closing brace in the styled component StyledToaster. It should have a closing brace after width: 100%;.
In the same file src/blocks/illustrations/index.ts, the styled component TextContainer is missing a closing brace after the definition of flex property.
In the file src/blocks/notification/Notification.tsx, the styled component NotificationDescription seems to be missing a closing backtick for the template literal of the NotificationTitle style definition.
In the file src/common/hooks/useRewardsNotification.tsx, the onClose function inside the showNotification function is missing an implementation. It is defined but not utilized or implemented. It should have a closing brace and any necessary logic inside it.
Apart from these issues, the code seems mostly fine.
It seems that there is a typo in the import statements for components. The import for Cross is incorrect. It should be '../notification/Notification' instead of 'blocks'.
In the src/blocks/notification/Notification.tsx file:
There is a missing closing curly brace } after the StyledToaster styled component.
The TextContainer styled component is missing a closing backtick }.
The NotificationTitle styled component is missing a closing backtick }.
The CloseButton styled component is missing a closing backtick }.
The IconContainer styled component seems to have some incomplete styling properties and the ellipsis styles for NotificationDescription might not work as intended.
In the src/common/hooks/useRewardsNotification.tsx file:
Inside the showNotification function, there is a missing closing curly brace } after the onClose function.
The showNotificationFn function is missing a closing curly brace } after the condition in the onClose function.
In the useEffect hook, the dependency array should also include hasMounted to prevent unnecessary re-renders.
The comment // include componentDidMount logic is not necessary and can be removed.
Other than the above-mentioned issues, everything looks good.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Ticket Number
Description
Type of Change
Checklist
Frontend Guidelines
Build & Testing
Screenshots/Video with Explanation
Before: Explain the previous behavior
After: What's changed now
Additional Context
Review & Approvals
Notes