Skip to content

Commit

Permalink
fix(uds): fix type errors that are only showing up in project checks
Browse files Browse the repository at this point in the history
I'm not sure why these are not being caught by this project's checks.
  • Loading branch information
stdavis committed Dec 13, 2024
1 parent 3060ee7 commit 9876b84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/utah-design-system/src/components/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function Checkbox(props: CheckboxProps) {
<CheckIcon aria-hidden className={iconStyles} />
) : null}
</div>
{props.children}
{props.children as ReactNode}
</>
)}
</AriaCheckbox>
Expand Down
2 changes: 1 addition & 1 deletion packages/utah-design-system/src/components/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function Radio(props: RadioProps) {
{(renderProps) => (
<>
<div className={styles(renderProps)} />
{props.children}
{props.children as ReactNode}
</>
)}
</RACRadio>
Expand Down
6 changes: 3 additions & 3 deletions packages/utah-design-system/src/components/TagGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { XIcon } from 'lucide-react';
import { createContext, useContext } from 'react';
import { createContext, type ReactNode, useContext } from 'react';
import {
Tag as AriaTag,
TagGroup as AriaTagGroup,
type TagGroupProps as AriaTagGroupProps,
type TagProps as AriaTagProps,
Button,
composeRenderProps,
TagList,
type TagListProps,
Text,
composeRenderProps,
} from 'react-aria-components';
import { twMerge } from 'tailwind-merge';
import { tv } from 'tailwind-variants';
Expand Down Expand Up @@ -122,7 +122,7 @@ export function Tag({ children, color, ...props }: TagProps) {
>
{({ allowsRemoving }) => (
<>
{children}
{children as ReactNode}
{allowsRemoving && (
<Button slot="remove" className={removeButtonStyles}>
<XIcon aria-hidden className="h-auto w-3" />
Expand Down

0 comments on commit 9876b84

Please sign in to comment.