Skip to content
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

Replace screenfull package with useFullscreen hook #5857

Merged
merged 2 commits into from
Jul 12, 2023
Merged

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Jul 8, 2023

WHAT

🤖 Generated by Copilot at b675685

This pull request replaces the screenfull library with a custom hook for fullscreen functionality in various components. This reduces dependencies, simplifies the code, and allows more flexibility in choosing the fullscreen element. The affected components are Feed.tsx, LiveFeed.tsx, and LiveFeedTile.tsx.

Proposed Changes

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

HOW

🤖 Generated by Copilot at b675685

  • Remove screenfull dependency from package.json (link)
  • Modify useFullscreen hook to accept an optional element parameter (link)
  • Update setFullscreen function to use native fullscreen methods and element parameter (link)
  • Replace screenfull library with useFullscreen hook in Feed.tsx (link, link, link)
  • Change question icon color to lighter gray in FeedCameraPTZHelpButton component (link)
  • Replace screenfull library with useFullscreen hook in LiveFeed.tsx (link, link, link, link)
  • Replace screenfull library with useFullscreen hook in LiveFeedTile.tsx (link, link, link)

@Ashesh3 Ashesh3 requested a review from a team July 8, 2023 12:19
@Ashesh3 Ashesh3 requested a review from a team as a code owner July 8, 2023 12:19
@Ashesh3 Ashesh3 requested a review from vigneshhari July 8, 2023 12:19
@vercel
Copy link

vercel bot commented Jul 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 7:28pm

@netlify
Copy link

netlify bot commented Jul 8, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 5990847
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64adad19308fcb00089a38ef
😎 Deploy Preview https://deploy-preview-5857--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jul 8, 2023
@github-actions github-actions bot added cypress passed and removed cypress failed pull request with cypress test failure labels Jul 11, 2023
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit 9be0f05 into develop Jul 12, 2023
29 checks passed
@khavinshankar khavinshankar deleted the issue-5840 branch July 12, 2023 08:15
@github-actions
Copy link

@Ashesh3 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uninstall screenfull package and use useFullscreen custom hook instead
3 participants