Skip to content

Commit

Permalink
reorder props
Browse files Browse the repository at this point in the history
  • Loading branch information
hussam-i-am committed Nov 8, 2024
1 parent 6bd5b31 commit 54a1b9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const UnstyledTextInput = React.forwardRef<HTMLInputElement, ToggledUnstyledText
forwardRef,
) {
const enabled = useFeatureFlag(TEXT_INPUT_CSS_MODULES_FEATURE_FLAG)
return <ToggledUnstyledTextInput ref={forwardRef} className={clsx(className, {[styles.Input]: enabled})} {...rest} />
return <ToggledUnstyledTextInput ref={forwardRef} {...rest} className={clsx(className, enabled && styles.Input)} />
})
UnstyledTextInput.displayName = 'UnstyledTextInput'

Expand Down

0 comments on commit 54a1b9a

Please sign in to comment.