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

224 homepage with factory #229

Merged
merged 6 commits into from
Oct 25, 2024
Merged

Conversation

L03TJ3
Copy link
Collaborator

@L03TJ3 L03TJ3 commented Oct 21, 2024

Description

Replacing withTheme hook with native-base's own Factory

@L03TJ3 L03TJ3 changed the base branch from master to 224-new-homepage October 21, 2024 15:34
@L03TJ3 L03TJ3 requested a review from sirpy October 21, 2024 15:35
@L03TJ3
Copy link
Collaborator Author

L03TJ3 commented Oct 21, 2024

@sirpy so this is the pattern you want to follow?

The only difference I spotted under the hood is the output of the HTML.
withTheme hook > outputs HTML with CSS utility classes (the way native-base components are transpiled)

Factory > outputs HTML with inline-styles

could affect performance according to some, but in this minimal example not noticable

@L03TJ3 L03TJ3 merged commit 0707878 into 224-new-homepage Oct 25, 2024
1 check passed
@L03TJ3 L03TJ3 deleted the 224-homepage-with-factory branch October 25, 2024 04:27
L03TJ3 added a commit that referenced this pull request Oct 25, 2024
* add: new homepage

* add: totalStats subgraph hook

* chore: mobile/responsive styles fixes

* 224 homepage with factory (#229)

* wip: use factory instead of withTheme

* remove withTheme hook usage, add: centralize breakpoint handling

* style fixes

* fix: handle copy in ui

* add typing
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.

1 participant