ampache_react/app/components/Settings.jsx

45 lines
1.2 KiB
React
Raw Permalink Normal View History

// 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 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)));
/**
* A single row for a single song in the songs table.
*/
2016-09-18 22:50:59 +02:00
class SettingsIntl extends Component {
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>
</div>
);
}
}
2016-09-18 22:50:59 +02:00
SettingsIntl.propTypes = {
intl: intlShape.isRequired,
};
2016-09-18 22:50:59 +02:00
export default injectIntl(SettingsIntl);