This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/javascript/flavours/glitch/containers/admin_component.jsx

23 lines
405 B
JavaScript

import PropTypes from 'prop-types';
import { PureComponent } from 'react';
import { IntlProvider } from 'flavours/glitch/locales';
export default class AdminComponent extends PureComponent {
static propTypes = {
children: PropTypes.node.isRequired,
};
render () {
const { children } = this.props;
return (
<IntlProvider>
{children}
</IntlProvider>
);
}
}