Skip to content

Commit 75718a5

Browse files
committed
LinkButton comonent error fix
1 parent 8159ec3 commit 75718a5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
type ButtonProps = React.ComponentProps<typeof Button>;
3+
type ButtonProps = React.ComponentProps<'button'>;
44

55
const Button: React.FC<ButtonProps> = ({ children, ...props }) => {
66
console.log(props);

src/components/LinkButton/LinkButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
type LinkButtonProps = React.Component<'a'>;
3+
type LinkButtonProps = React.ComponentProps<'a'>;
44

55
const LinkButton: React.FC<LinkButtonProps> = ({ children, ...props }) => {
66
return (

0 commit comments

Comments
 (0)