Skip to content

Commit

Permalink
fix: type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
khalibloo committed Jul 23, 2023
1 parent d6d4158 commit 5e42e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function generator({ suffixCls, tagName, displayName }: GeneratorProps) {
};
}

const Basic = React.forwardRef<HTMLElement, BasicPropsWithTagName>((props, ref) => {
const Basic = React.forwardRef<HTMLDivElement, BasicPropsWithTagName>((props, ref) => {
const {
prefixCls: customizePrefixCls,
suffixCls,
Expand All @@ -70,7 +70,7 @@ const Basic = React.forwardRef<HTMLElement, BasicPropsWithTagName>((props, ref)
);
});

const BasicLayout = React.forwardRef<HTMLElement, BasicPropsWithTagName>((props, ref) => {
const BasicLayout = React.forwardRef<HTMLDivElement, BasicPropsWithTagName>((props, ref) => {
const { direction } = React.useContext(ConfigContext);

const [siders, setSiders] = React.useState<string[]>([]);
Expand Down

0 comments on commit 5e42e5a

Please sign in to comment.