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

TS conversion for ColorPicker component #15777

Merged
merged 2 commits into from
Mar 20, 2025
Merged

Conversation

PClmnt
Copy link
Collaborator

@PClmnt PClmnt commented Mar 20, 2025

Description

Converts ColorPicker component to TS

Copy link

qa-wolf bot commented Mar 20, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/s labels Mar 20, 2025
@PClmnt PClmnt enabled auto-merge March 20, 2025 09:58
if (!theme) {
return ""
}
theme = ensureValidTheme(theme, DefaultAppTheme)
return getThemeClassNames(theme)
}

const onChange = value => {
const onChange = (value: string | null) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should be trying to get rid of null usage, as under typescript its very specific, undefined should work in all scenarios like this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had this set to auto merge, woops. I will fix this in my next PR, sorry!

Copy link
Collaborator

@mike12345567 mike12345567 left a comment

Choose a reason for hiding this comment

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

LGTM!

@PClmnt PClmnt merged commit aa8cb35 into master Mar 20, 2025
22 checks passed
@PClmnt PClmnt deleted the feat/color-picker-ts-conversion branch March 20, 2025 10:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants