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

Migrate to twenty-ui utilities/screen-size #7836

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Migrate to twenty-ui utilities/screen-size #7836

merged 2 commits into from
Oct 22, 2024

Conversation

gitstart-app[bot]
Copy link
Contributor

@gitstart-app gitstart-app bot commented Oct 18, 2024

This PR was created by GitStart to address the requirements from this ticket: TWNTY-7540.


Description

Move utilities/screen-size to the twenty-ui package

Demo

The useScreenSize was used to render the mobile nav for example on the landing page.

It still renders properly

Fixes #7540
Dev QA
  • utilities/screen-size should be moved to the twenty-ui folder

  • The mobile nav should still show on the landing page

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This pull request moves the useScreenSize hook from the twenty-front package to the twenty-ui package, enhancing its accessibility and reusability across the application.

  • Relocated useScreenSize.ts to packages/twenty-ui/src/utilities/screen-size/hooks/
  • Updated import in packages/twenty-front/src/modules/ui/layout/page/DefaultLayout.tsx to use the new location
  • Added useScreenSize export in packages/twenty-ui/src/utilities/index.ts
  • Verified mobile navigation functionality remains intact on the landing page

3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@gitstart-twenty gitstart-twenty changed the title utilities/screen-size Migrate to twenty-ui utilities/screen-size Oct 18, 2024
@charlesBochet
Copy link
Member

@gitstart-twenty could you rebase this one?

@charlesBochet charlesBochet self-assigned this Oct 21, 2024
@charlesBochet charlesBochet merged commit 6133a72 into main Oct 22, 2024
15 checks passed
@charlesBochet charlesBochet deleted the TWNTY-7540 branch October 22, 2024 08:34
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.

2 participants