Aryaman Gupta
Aryaman Gupta
The handleChapterChange function is added to handle the chapter change event and refresh the video player accordingly. The initializePlayer function sets the initial playback rate to 1X and initializes the...
Tracks the current video index using the currentVideoIndex state variable. Accepts a list of videos as input (videoList) and uses currentVideoIndex to determine the current video. When a video ends,...
Rounding Function: The roundToNearest15Minutes function rounds the selected time to the nearest 15 minutes. Handle Change Logic: The handleChange function has been modified to use the rounding function before dispatching...
timeStep Prop: Control the rounding by passing a timeStep prop (e.g., 15 for 15-minute intervals). Testing: Implement unit tests outside of this file to validate the functionality and edge cases...
Attractive Background: A gradient background adds visual interest and warmth to the page. Password Visibility Toggle: Users can now click an icon to toggle password visibility, improving usability. Client-Side Validation:...