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

Add minor util tests #1294

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

git-babel
Copy link
Contributor

@git-babel git-babel commented Jan 8, 2025

Changelog

  • Added minor test cases for util functions
  • Removed unused util functions

Copy link

netlify bot commented Jan 8, 2025

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit a7bfac6
🔍 Latest deploy log https://app.netlify.com/sites/sendbird-uikit-react/deploys/677e336006e22400080a5c00
😎 Deploy Preview https://deploy-preview-1294--sendbird-uikit-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -18,6 +18,7 @@ export const changeColorToClassName = (color: Colors): string => {
case Colors.ONBACKGROUND_3: return 'sendbird-color--onbackground-3';
case Colors.ONBACKGROUND_4: return 'sendbird-color--onbackground-4';
case Colors.ONCONTENT_1: return 'sendbird-color--oncontent-1';
case Colors.ONCONTENT_2: return 'sendbird-color--oncontent-2';
Copy link
Contributor

Choose a reason for hiding this comment

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

If we use the ONCONTENT_2, we need CSS set too. But it seems there's no CSS files for this className.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As you said, we have a logic to convert the enum value to the class name, but there is no actual css for sendbird-color--oncontent-2. Should we delete the logic and test for Colors.ONCONTENT_2?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think it's good to remove it. We can always add it back when needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

src/utils/useDidMountEffect.ts Outdated Show resolved Hide resolved
@git-babel git-babel merged commit 82a93b4 into feat/state-mgmt-migration-1 Jan 9, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants