29 lines
693 B
JavaScript
Raw Normal View History

2016-08-26 15:32:44 +02:00
/**
*
* LeftMenuFooter
*
*/
import React from 'react';
2017-08-14 15:22:42 +02:00
import { defineMessages, FormattedMessage } from 'react-intl';
2018-04-12 23:45:17 +02:00
import { PropTypes } from 'prop-types';
import styles from './styles.scss';
2016-10-13 20:53:33 +02:00
import messages from './messages.json';
2017-08-14 15:22:42 +02:00
defineMessages(messages);
2016-08-26 15:32:44 +02:00
2018-04-12 23:45:17 +02:00
function LeftMenuFooter({ version }) { // eslint-disable-line react/prefer-stateless-function
return (
<div className={styles.leftMenuFooter}>
<FormattedMessage {...messages.poweredBy} />
<a href={`https://github.com/strapi/strapi/releases/tag/v${version}`} target="_blank">v{version}</a>
2018-04-12 23:45:17 +02:00
</div>
);
2016-08-26 15:32:44 +02:00
}
2018-04-12 23:45:17 +02:00
LeftMenuFooter.propTypes = {
version: PropTypes.string.isRequired,
};
2016-08-26 15:32:44 +02:00
export default LeftMenuFooter;