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

removed useDarkMode #794

Merged
merged 6 commits into from
Oct 28, 2024
Merged

removed useDarkMode #794

merged 6 commits into from
Oct 28, 2024

Conversation

gerouvi
Copy link
Collaborator

@gerouvi gerouvi commented Oct 28, 2024

Removed useDarkMode hook and use useColorModeValue in each Component

@gerouvi gerouvi requested a review from elboletaire October 28, 2024 11:57
Copy link

github-actions bot commented Oct 28, 2024

@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 11:59 Inactive
Copy link

github-actions bot commented Oct 28, 2024

@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 11:59 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 12:33 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 12:33 Inactive
Copy link
Member

@elboletaire elboletaire left a comment

Choose a reason for hiding this comment

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

I've pointed out some issues not directly related to this PR, but I wasn't aware of them (remember I've been out for a month..).

Overall you should stop using the useColorModeValue hook, and use the _dark prop instead. The hook should only be used for some specific cases where you need a value change, but for theming purposes simply use the _dark prop instead.

Also, avoid styling buttons. Buttons should only have a variant for now, any other props should be done in that variant, or maybe they should not be in that button at all.

src/components/Auth/GoogleAuth.tsx Outdated Show resolved Hide resolved
src/components/Editor/Editor.tsx Outdated Show resolved Hide resolved
src/components/Editor/Editor.tsx Outdated Show resolved Hide resolved
src/components/Layout/CheckboxCustom.tsx Outdated Show resolved Hide resolved
src/components/Layout/InputCustom.tsx Outdated Show resolved Hide resolved
src/elements/LayoutProcessCreate.tsx Outdated Show resolved Hide resolved
src/theme/colors.ts Outdated Show resolved Hide resolved
src/theme/components/Form.ts Outdated Show resolved Hide resolved
src/theme/components/input.ts Outdated Show resolved Hide resolved
src/theme/components/textarea.ts Outdated Show resolved Hide resolved
@gerouvi gerouvi requested a review from elboletaire October 28, 2024 14:55
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 14:56 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 14:56 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 16:05 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 16:05 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 16:29 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 16:30 Inactive
@elboletaire elboletaire merged commit 6a0051c into develop Oct 28, 2024
3 checks passed
@elboletaire elboletaire deleted the f/removed-use-dark-mode branch October 28, 2024 16:37
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.

2 participants