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

Refactor Viewport to useViewport hook (for some components) #753

Merged
merged 8 commits into from
Apr 29, 2019

Conversation

AquiGorka
Copy link
Contributor

Builds on top of #750 to avoid conflicts.

@AquiGorka AquiGorka requested review from bpierre and sohkai April 25, 2019 10:01
@AquiGorka AquiGorka changed the title Refacotr Viewport to useViewport hook (for some components) Refactor Viewport to useViewport hook (for some components) Apr 25, 2019
Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

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

✅ LGTM!

Copy link
Contributor

@bpierre bpierre left a comment

Choose a reason for hiding this comment

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

Nice 🎈

src/apps/Permissions/AppInstanceLabel.js Outdated Show resolved Hide resolved
src/apps/Settings/DaoSettings.js Outdated Show resolved Hide resolved
@AquiGorka AquiGorka force-pushed the feature/use-viewport-hook branch from 0edd892 to 7cf2020 Compare April 25, 2019 10:46
@AquiGorka AquiGorka force-pushed the feature/app-center-app-details branch from 7739e40 to 7bfc477 Compare April 26, 2019 12:56
@luisivan luisivan mentioned this pull request Apr 29, 2019
25 tasks
@AquiGorka AquiGorka force-pushed the feature/app-center-app-details branch 2 times, most recently from 1e681d8 to 9bec3aa Compare April 29, 2019 08:41
@AquiGorka AquiGorka force-pushed the feature/use-viewport-hook branch from 7cf2020 to 4f7d49f Compare April 29, 2019 13:29
@AquiGorka AquiGorka merged commit 8f74c8b into feature/app-center-app-details Apr 29, 2019
@AquiGorka AquiGorka deleted the feature/use-viewport-hook branch April 29, 2019 14:27
AquiGorka added a commit that referenced this pull request Apr 29, 2019
* Update aragonUI version

* AppContent: refactor Viewport to useViewport hook

* DaoSettings: refactor Viewport to useViewport hook

* AppInstanceLabel: refactor Viewport to useViewport hook

* NavigationItem: refactor Viewport to useViewport hook

* Preferences: refactor Viewport to useViewport hook

* AppInstanceLabel: add react memo to avoid re-renders

* DaoSettings: add react memo to avoid re-renders
AquiGorka added a commit that referenced this pull request Apr 30, 2019
* Add remark deps

* Screenshots: add key to list items

* AppContent: add app details parsed from markdown

* AppContent: add app details to use all available space in larger viewports

* AppContent: add right padding to app details

* AppContent: refactor var name to use camel case

* AppContent: use details from latest version

* AppContent: override links with SafeLinks in markdown

* AppContent: add two column layout for larger screens

* AppContent: update useEffect to usePromise (which is cancellable)

* Hooks: add usePromise

* Refactor Viewport to useViewport hook (for some components) (#753)

* Update aragonUI version

* AppContent: refactor Viewport to useViewport hook

* DaoSettings: refactor Viewport to useViewport hook

* AppInstanceLabel: refactor Viewport to useViewport hook

* NavigationItem: refactor Viewport to useViewport hook

* Preferences: refactor Viewport to useViewport hook

* AppInstanceLabel: add react memo to avoid re-renders

* DaoSettings: add react memo to avoid re-renders

* AppContent: reorder elements, remove 2 column details and add 2 column content for larger screens

* Markdown: add component

* AppContent: refactor details to use markdown component

* Markdown: add react memo

* Hooks: add use repo details hook

* AppContent: update to useRepoDetails hook and refactor links

* AppContent: update repo name link to use block explorer url

* AppContent: use repo address instead of repo name for link

* Add li rules to markdown context

Co-Authored-By: AquiGorka <gorka@aquigorka.com>

* Add focus rules to markdown context

Co-Authored-By: AquiGorka <gorka@aquigorka.com>

* useRepoDetails: update error log

* Markdown: fix linter error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants