2016-09-18 20:57:51 +02:00
|
|
|
// NPM imports
|
|
|
|
import React, { Component } from "react";
|
2016-09-18 22:50:59 +02:00
|
|
|
import { defineMessages, injectIntl, intlShape, FormattedMessage } from "react-intl";
|
2016-09-18 20:57:51 +02:00
|
|
|
|
2016-09-18 22:50:59 +02:00
|
|
|
// Local imports
|
|
|
|
import { messagesMap } from "../utils";
|
|
|
|
|
|
|
|
// Translations
|
|
|
|
import commonMessages from "../locales/messagesDescriptors/common";
|
|
|
|
import messages from "../locales/messagesDescriptors/Settings";
|
|
|
|
|
|
|
|
// Define translations
|
|
|
|
const settingsMessages = defineMessages(messagesMap(Array.concat([], commonMessages, messages)));
|
2016-09-18 20:57:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A single row for a single song in the songs table.
|
|
|
|
*/
|
2016-09-18 22:50:59 +02:00
|
|
|
class SettingsIntl extends Component {
|
2016-09-18 20:57:51 +02:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
2016-09-18 22:50:59 +02:00
|
|
|
<div className="row">
|
|
|
|
<div className="col-xs-12">
|
|
|
|
<h2>
|
|
|
|
<FormattedMessage {...settingsMessages["app.settings.settings"]} />
|
|
|
|
</h2>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="row">
|
|
|
|
<div className="col-xs-12">
|
|
|
|
<p>TODO</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-18 20:57:51 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2016-09-18 22:50:59 +02:00
|
|
|
SettingsIntl.propTypes = {
|
2016-09-18 20:57:51 +02:00
|
|
|
intl: intlShape.isRequired,
|
|
|
|
};
|
2016-09-18 22:50:59 +02:00
|
|
|
export default injectIntl(SettingsIntl);
|