Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 47276b3

Browse files
committed
bugfix: fix ts lint error
1 parent 8135f9a commit 47276b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SettingDrawer/ThemeColor.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export interface ThemeColorProps {
3333
formatMessage: (data: { id: any; defaultMessage?: string }) => string;
3434
}
3535

36-
const ThemeColor: React.FC<ThemeColorProps> = (
37-
{ colors, title, value, onChange, formatMessage },
38-
ref,
39-
) => {
36+
const ThemeColor: React.ForwardRefRenderFunction<
37+
HTMLDivElement,
38+
ThemeColorProps
39+
> = ({ colors, title, value, onChange, formatMessage }, ref) => {
4040
const colorList = colors || [];
4141
if (colorList.length < 1) {
4242
return null;

0 commit comments

Comments
 (0)