-
Notifications
You must be signed in to change notification settings - Fork 11
Refactor/to-scss-reveal-content-container #251
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for webdevpathstage ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
||
const RevealContentContainer = ({ children }) => { | ||
const [ref, entry] = useIntersect({}); | ||
const [firstLoad, setFirstLoad] = useState(true); | ||
const [hiddenStyle, setHiddenStyle] = useState(true); | ||
const hiddenStyleClass = hiddenStyle ? styles.sectionHidden : null; // return sectionHidden class name if hiddenStyle is true. |
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.
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.
Hi @cherylli ! Thanks for the review. I've fix the null set on class name, and remove the unnecessary comment.
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.
Looks great!
Have you updated the CHANGELOG.md file? If not, please do it.
Yes
What is this change?
RevealContentContainer
component from styled-components to SCSS module.Were there any complications while making this change?
None
How to replicate the issue?
N/A
If necessary, please describe how to test the new feature or fix.
Reload browser or scroll down to check first load transitions.
When should this be merged?
After the reviews.
Image Reference
Not available since it's non-static update. It's the transition from first load.