Skip to content

Commit

Permalink
feat(Box): fix some unnecessary typings (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaevAlexandr authored and amje committed Feb 6, 2024
1 parent 2c16005 commit 2229f37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/components/layout/Box/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export interface BoxProps<T extends React.ElementType = 'div'>
* ```
*/
spacing?: SpacingProps;
onClick?(e: React.MouseEvent<T>): void;
}

/**
Expand Down
5 changes: 1 addition & 4 deletions src/components/layout/Flex/Flex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import './Flex.scss';

const b = block('flex');

export interface FlexProps<T extends React.ElementType = 'div'>
extends QAProps,
BoxProps<T>,
React.HTMLAttributes<T> {
export interface FlexProps<T extends React.ElementType = 'div'> extends QAProps, BoxProps<T> {
/**
* `flex-direction` property
*/
Expand Down

0 comments on commit 2229f37

Please sign in to comment.