Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(queryRules): replace React.SFC by React.FC
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Apr 1, 2019
1 parent ee1393b commit 495d577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type QueryRuleCustomDataProps<TItem> = {
children: (options: QueryRuleCustomDataRenderProps<TItem>) => React.ReactNode;
};

const QueryRuleCustomData: React.SFC<
const QueryRuleCustomData: React.FC<
QueryRuleCustomDataProps<CustomUserData>
> = ({ items, className, children }) => (
<div className={classNames(cx(''), className)}>{children({ items })}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import QueryRuleCustomData, {
QueryRuleCustomDataProps,
} from '../components/QueryRuleCustomData';

const QueryRuleCustomDataWidget: React.SFC<
const QueryRuleCustomDataWidget: React.FC<
QueryRuleCustomDataProps<CustomUserData>
> = props => (
<PanelCallbackHandler {...props}>
Expand Down

0 comments on commit 495d577

Please sign in to comment.