Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
data: PropTypes.array,
isRtl: PropTypes.bool,
loading: PropTypes.bool,
minBarWidth: PropTypes.number,
minTouchBarWidth: PropTypes.number,
numberFormat: PropTypes.func,
translate: PropTypes.func,
};
Chart.defaultProps = {
barClick: noop,
minBarWidth: 15,
minTouchBarWidth: 42,
};
export default withRtl( localize( Chart ) );
lastPage={ ! this.props.mediaHasNextPage }
fetchingNextPage={ this.props.mediaFetchingNextPage }
guessedItemHeight={ this.getMediaItemHeight() }
fetchNextPage={ onFetchNextPage }
getItemRef={ this.getItemRef }
renderItem={ this.renderItem }
renderLoadingPlaceholders={ this.renderLoadingPlaceholders }
className="media-library__list"
/>
);
}
}
export default connect( state => ( {
mediaScale: getPreference( state, 'mediaScale' ),
} ) )( withRtl( withLocalizedMoment( MediaLibraryList ) ) );