Skip to content

Commit

Permalink
fix: 타입 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Feb 12, 2024
1 parent faa7078 commit d5ea954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/DatePicker/DatePicker.styles.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import styled from '@emotion/styled';

export interface DatePickerProps {
fromInputProps?: Omit<React.ComponentProps<'input'>, 'type'>;
toInputProps?: Omit<React.ComponentProps<'input'>, 'type'>;
fromInputProps?: Omit<React.ComponentProps<'input'>, 'type' | 'ref'>;
toInputProps?: Omit<React.ComponentProps<'input'>, 'type' | 'ref'>;
size: 'small' | 'big';
}

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/TextField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import Styled, { TextFieldProps } from './TextField.styles';

type Props = Omit<React.ComponentProps<'input'>, 'size' | 'type'> & TextFieldProps;

const TextField = forwardRef(function TextField(
const TextField = forwardRef<HTMLInputElement, Props>(function TextField(
{ disabled, size, inputType, buttonProps, placeholder, id, errorMessage, ...rest }: Props,
ref?: React.Ref<HTMLInputElement>,
ref,
) {
const uuid = useRef<string>(id ?? nanoid(6));

Expand Down

0 comments on commit d5ea954

Please sign in to comment.