Merge pull request #31586 from nielsdB97/patch-2

Allow both JSX elements and strings to be passed as ReactTable.TextProps
This commit is contained in:
Wesley Wigham
2018-12-24 21:06:29 -08:00
committed by GitHub
+6 -6
View File
@@ -362,22 +362,22 @@ export interface ComponentProps {
export interface TextProps {
/** Default: 'Previous' */
previousText: string;
previousText: React.ReactNode;
/** Default: 'Next' */
nextText: string;
nextText: React.ReactNode;
/** Default: 'Loading...' */
loadingText: string;
loadingText: React.ReactNode;
/** Default: 'No rows found' */
noDataText: string;
noDataText: React.ReactNode | React.ComponentType;
/** Default: 'Page' */
pageText: string;
pageText: React.ReactNode;
/** Default: 'of' */
ofText: string;
ofText: React.ReactNode;
/** Default: 'rows' */
rowsText: string;