Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed Dec 5, 2024
1 parent 565f2f7 commit 82da9c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/select/SelectValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Component: ComponentType = React.forwardRef(
)

const render = React.useMemo(() => {
if (state?.selectedItem?.textValue) return state?.selectedItem.textValue
if (state?.selectedItem?.textValue) return state.selectedItem.textValue

return <Element {...component} ref={ref} />
}, [Element, component, ref, state?.selectedItem?.textValue])
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utilities/polymorphic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import type React from 'react'

type PropsOf<C extends React.ElementType> = React.ComponentPropsWithoutRef<C>

Expand Down

0 comments on commit 82da9c2

Please sign in to comment.