Skip to content

Commit

Permalink
타입 에러수정 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
klmhyeonwoo committed Nov 7, 2023
1 parent 127ce31 commit 021bca6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions @types/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ export interface buttonProps {
text: string;
state: boolean;
}

export interface inputProps {
placeholder: string;
value: string;
onChange: React.ChangeEventHandler<HTMLInputElement>;
name: string;
}
6 changes: 2 additions & 4 deletions src/components/notice/components/component.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/** @jsxImportSource @emotion/react */
import React from "react";
import { css } from "@emotion/react";
import { InputProps } from "style-components/dist/components/Input/Input";
import { ButtonProps } from "style-components/dist/components/Botton/Button";
import { buttonProps } from "@/@types/type";
import { buttonProps, inputProps } from "@/@types/type";

export function Title() {
return (
Expand Down Expand Up @@ -44,7 +42,7 @@ export default function Input({
value,
onChange,
name,
}: InputProps) {
}: inputProps) {
return (
<input
placeholder={placeholder}
Expand Down

0 comments on commit 021bca6

Please sign in to comment.