333c28ce6d
Port 29851c83bd
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
22 lines
405 B
JavaScript
22 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>
|
|
);
|
|
}
|
|
|
|
}
|