Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(queryRules): replace React.SFC by React.FC
  • Loading branch information
francoischalifour committed Apr 1, 2019
commit 495d577c4e005b9bb4836130aae187dbb7c52d52
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