Skip to content

Commit

Permalink
Fix Solid components using React instead of Solid (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmui2 committed Aug 29, 2024
1 parent c28386c commit 4327ade
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/solid/src/components/ui/styled/combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ export type {
ComboboxInputValueChangeDetails as InputValueChangeDetails,
ComboboxOpenChangeDetails as OpenChangeDetails,
ComboboxValueChangeDetails as ValueChangeDetails,
} from '@ark-ui/react/combobox'
} from '@ark-ui/solid'
4 changes: 2 additions & 2 deletions components/solid/src/components/ui/styled/heading.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ComponentProps } from 'solid-js'
import type { ComponentProps, JSX } from 'solid-js'
import { styled } from 'styled-system/jsx'
import { type TextVariantProps, text } from 'styled-system/recipes'
import type { StyledComponent } from 'styled-system/types'

type TextProps = TextVariantProps & { as?: React.ElementType }
type TextProps = TextVariantProps & { as?: JSX.Element }

export type HeadingProps = ComponentProps<typeof Heading>
export const Heading = styled('h2', text, {
Expand Down
4 changes: 2 additions & 2 deletions components/solid/src/components/ui/styled/text.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ComponentProps } from 'solid-js'
import type { ComponentProps, JSX } from 'solid-js'
import { styled } from 'styled-system/jsx'
import { type TextVariantProps, text } from 'styled-system/recipes'
import type { StyledComponent } from 'styled-system/types'

type ParagraphProps = TextVariantProps & { as?: JSX.ElementType }
type ParagraphProps = TextVariantProps & { as?: JSX.Element }

export type TextProps = ComponentProps<typeof Text>
export const Text = styled('p', text) as StyledComponent<'p', ParagraphProps>

0 comments on commit 4327ade

Please sign in to comment.