import React from 'react'; import PropTypes from 'prop-types'; import DirectoryListing from './DirectoryListing'; const styles = { wrapper: { maxWidth: 900, margin: '0 auto' }, header: { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }, versionSelector: { float: 'right', lineHeight: '2.25em' }, versionDropdown: { fontSize: '1em' }, address: { textAlign: 'right' } }; export default class App extends React.Component { static defaultProps = { availableVersions: [] }; handleChange = event => { window.location.href = window.location.href.replace( '@' + this.props.packageVersion, '@' + event.target.value ); }; render() { return (