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: InputWithTooltipの内部でのstyle属性の生成方法を整理 #5286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AtsushiM
Copy link
Member

関連URL

概要

変更内容

確認方法

Copy link

pkg-pr-new bot commented Jan 15, 2025

Open in Stackblitz

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

commit: bc4ad22

@yagimushi yagimushi force-pushed the chore-refactoring-InputWithTooltip branch from 29e4df0 to bc4ad22 Compare January 15, 2025 23:38
Comment on lines +18 to +25
const widthStyle = useMemo(
() => ({
width: typeof width === 'number' ? `${width}px` : width,
}),
[width],
)

const tooltipStyleProps = useMemo(() => inputWithTooltip({ className }), [className])
Copy link
Member Author

Choose a reason for hiding this comment

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

無意味にuseMemoがまとめられていたため、個別にmemo化するようにしました。

@AtsushiM AtsushiM marked this pull request as ready for review January 15, 2025 23:42
@AtsushiM AtsushiM requested a review from a team as a code owner January 15, 2025 23:42
@AtsushiM AtsushiM requested review from misako0927 and masa0527 and removed request for a team January 15, 2025 23:42
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