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: Input, InputWithTooltip, SearchInputの内部ロジックを整理 #5431

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

Conversation

AtsushiM
Copy link
Member

@AtsushiM AtsushiM commented Mar 5, 2025

関連URL

概要

変更内容

確認方法

@AtsushiM AtsushiM changed the title chore: Fix format class name generator 4 chore: Input, InputWithTooltip, SearchInputの内部ロジックを整理 Mar 5, 2025
}

return (e: FocusEvent<HTMLInputElement>) => onFocus(e)
}, [onFocus])
Copy link
Member Author

Choose a reason for hiding this comment

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

既存の挙動を無駄関数を使って再現しているだけであったため、削除しました

}

return (e: FocusEvent<HTMLInputElement>) => onBlur(e)
}, [onBlur])
Copy link
Member Author

Choose a reason for hiding this comment

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

こちらも同様に無駄な関数だったため削除しています

() => wrapperClassNameGenerator({ disabled, readOnly, className }),
[disabled, readOnly, className],
)
const wrapperStyle = useMemo(() => {
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とstyleを同時にmemoする意味が薄いため分割しています

@yagimushi yagimushi force-pushed the fix-format-class-name-generator-4 branch from 91f8166 to 68659aa Compare March 5, 2025 00:38
Copy link

pkg-pr-new bot commented Mar 5, 2025

Open in Stackblitz

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

commit: 68659aa

@AtsushiM AtsushiM marked this pull request as ready for review March 5, 2025 03:10
@AtsushiM AtsushiM requested a review from a team as a code owner March 5, 2025 03:10
@AtsushiM AtsushiM requested review from moshisora and schktjm and removed request for a team March 5, 2025 03:10
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.

1 participant