Skip to content

Commit 0d83825

Browse files
committed
Fix type errors
1 parent b410439 commit 0d83825

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/common/src/components/Button/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ const Button: FunctionComponent<Props> = ({ style = {}, ...props }) => {
2525
}
2626

2727
if (props.href) {
28+
// @ts-ignore
2829
return <AButton {...props} style={style} />;
2930
}
3031

32+
// @ts-ignore
3133
return <ReakitButton {...props} style={style} />;
3234
};
3335

packages/common/src/components/Preference/PreferenceText/index.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
ChangeEvent,
3-
createElement,
4-
FunctionComponent,
5-
ComponentProps,
6-
} from 'react';
1+
import { ChangeEvent, createElement, FunctionComponent } from 'react';
72

83
import { Input, TextArea } from './elements';
94

@@ -14,7 +9,7 @@ type Props = {
149
rows?: number;
1510
setValue: (value: string) => void;
1611
value: string;
17-
} & Pick<ComponentProps<typeof Input>, 'style'>;
12+
};
1813

1914
export const PreferenceText: FunctionComponent<Props> = ({
2015
isTextArea,

0 commit comments

Comments
 (0)