Skip to content

Commit

Permalink
type: fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 19, 2023
1 parent 14f8bac commit 4a888f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/StyledLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PropsWithChildren, forwardRef, useImperativeHandle } from 'react';
import styled, { css, CSSProperties } from 'styled-components';
import { PropsWithChildren, forwardRef, CSSProperties } from 'react';
import styled, { css } from 'styled-components';

export interface LayoutProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
title?: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/Textarea.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import styled, { css, CSSProperties } from 'styled-components';
import styled, { css } from 'styled-components';

export interface TextareaProps
extends React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
error?: boolean;
ref?: React.RefObject<HTMLTextAreaElement>;
resize?: CSSProperties['resize'];
resize?: React.CSSProperties['resize'];
}

export const Textarea = styled.textarea<TextareaProps>`
Expand Down

0 comments on commit 4a888f5

Please sign in to comment.