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

chore: Badge, Balloon, Base, BaseColumn, CurrencyInputの内部処理を最適化する #5349

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

AtsushiM
Copy link
Member

関連URL

概要

変更内容

確認方法

Copy link

pkg-pr-new bot commented Jan 30, 2025

Open in Stackblitz

npm i https://pkg.pr.new/kufu/smarthr-ui@5349

commit: bec13da

@AtsushiM AtsushiM changed the title chore: Baseの内部処理を最適化する chore: Badge, Balloon, Base, BaseColumn, CurrencyInputの内部処理を最適化する Feb 3, 2025
import { useClassNameGenerator } from '../../hooks/useClassNameGenerator'

export function useClassNames() {
const generate = useClassNameGenerator('Balloon')
Copy link
Member Author

Choose a reason for hiding this comment

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

やっていることは一定のclassNameを生成することだけであり、他コンポーネントではベタ打ちでコンポーネントに記述されているため、このhook自体を削除しました。
対象はBalloonとCurrencyInputになります

Copy link
Member Author

Choose a reason for hiding this comment

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

そもそもBalloonは未使用のhookから呼び出されているだけでした

@AtsushiM AtsushiM marked this pull request as ready for review February 3, 2025 22:43
@AtsushiM AtsushiM requested a review from a team as a code owner February 3, 2025 22:43
@AtsushiM AtsushiM requested review from oti and s-sasaki-0529 and removed request for a team February 3, 2025 22:43
@yagimushi yagimushi force-pushed the chore-refactoring-Base branch from 6bb6154 to bec13da Compare February 12, 2025 01:50
Copy link
Contributor

@oti oti left a comment

Choose a reason for hiding this comment

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

LGTM!

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