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

Functional components/layout/* with css modules #3278

Merged
merged 11 commits into from
Mar 22, 2021

Conversation

amass01
Copy link
Member

@amass01 amass01 commented Mar 1, 2021

waiting on #3215 as it conflicts with layout.less.

This refactors components/layout/* components to functional approach and splits layout.less to many local, component specific, encapsulated css modules.

It also adds few className props to custom style parts of TabbedPage & TabbedPageTab, before this commit we used to override classes in too many different less files but with this approach wrapper will provide specific className defined in it's css module instead of overriding children css classes in wrapper's .less file.

This also deletes couple of redux connectors & MyTickets.less which wasn't used anymore.

Part of #2438 & #2439.

@amass01 amass01 marked this pull request as draft March 1, 2021 22:02
@amass01 amass01 force-pushed the funclayout branch 2 times, most recently from d651b15 to d45e893 Compare March 17, 2021 16:39
@amass01 amass01 changed the title [WIP] Functional components/layout/* with css modules Functional components/layout/* with css modules Mar 20, 2021
@amass01 amass01 marked this pull request as ready for review March 20, 2021 11:48
Copy link
Collaborator

@bgptr bgptr left a comment

Choose a reason for hiding this comment

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

LGTM! Left a tiny comment. Nice work!

app/hooks/useModalVisible.js Outdated Show resolved Hide resolved
Copy link
Member

@matheusd matheusd left a comment

Choose a reason for hiding this comment

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

Tested fine

@alexlyp alexlyp merged commit 23e7b3a into decred:master Mar 22, 2021
@amass01 amass01 deleted the funclayout branch March 22, 2021 15:12
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.

4 participants