Skip to content

Commit

Permalink
chore: improve compatibility with react 18
Browse files Browse the repository at this point in the history
  • Loading branch information
tenphi committed Aug 30, 2024
1 parent e8837a7 commit 652a5da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-penguins-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cube-dev/ui-kit': minor
---

Improve compatibility with React 18 in some cases.
5 changes: 2 additions & 3 deletions src/tasty/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AllHTMLAttributes, CSSProperties } from 'react';
import { AllHTMLAttributes, CSSProperties, PropsWithChildren } from 'react';

import { Styles } from './styles/types';
import {
Expand Down Expand Up @@ -80,8 +80,7 @@ export interface BasePropsWithoutChildren
}

export interface BaseProps
extends BasePropsWithoutChildren,
Pick<AllHTMLAttributes<HTMLElementTagNameMap['div']>, 'children'> {}
extends PropsWithChildren<BasePropsWithoutChildren> {}

export interface AllBaseProps<K extends keyof HTMLElementTagNameMap = 'div'>
extends BaseProps,
Expand Down

0 comments on commit 652a5da

Please sign in to comment.