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

Commit 2d5f6c3

Browse files
rgoldiezsatya164
authored andcommitted
fix: fix headerTitle deprecation warning (#257)
1 parent 8542e8d commit 2d5f6c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/validateDeprecatedOptions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const validations: Validation[] = [
2222
{
2323
check: o =>
2424
o.headerTitle !== undefined &&
25-
typeof o.header !== 'string' &&
26-
typeof o.header !== 'function',
25+
typeof o.headerTitle !== 'string' &&
26+
typeof o.headerTitle !== 'function',
2727
deprecated: 'headerTitle: <SomeElement />',
2828
updated: 'headerTitle: () => <SomeElement />',
2929
},

0 commit comments

Comments
 (0)