Skip to content

Commit

Permalink
fix: layout type error
Browse files Browse the repository at this point in the history
  • Loading branch information
honkinglin committed Apr 22, 2022
1 parent bc9c658 commit 26e1ee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/card/README.md

This file was deleted.

8 changes: 4 additions & 4 deletions src/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import { StyledProps } from '../common';
import { TdLayoutProps, TdHeaderProps, TdFooterProps } from './type';
import Aside from './Aside';

export interface LayoutProps extends TdLayoutProps, StyledProps {
export interface LayoutProps extends TdLayoutProps, StyledProps, React.HTMLAttributes<HTMLDivElement> {
children?: React.ReactNode;
}
export interface HeaderProps extends TdHeaderProps, StyledProps {
export interface HeaderProps extends TdHeaderProps, StyledProps, React.HTMLAttributes<HTMLElement> {
children?: React.ReactNode;
}
export interface ContentProps extends StyledProps {
export interface ContentProps extends StyledProps, React.HTMLAttributes<HTMLElement> {
children?: React.ReactNode;
}
export interface FooterProps extends TdFooterProps, StyledProps {
export interface FooterProps extends TdFooterProps, StyledProps, React.HTMLAttributes<HTMLElement> {
children?: React.ReactNode;
}

Expand Down

0 comments on commit 26e1ee3

Please sign in to comment.