UNPKG

nodebb-plugin-ns-awards-next

Version:

System for rewarding forum users. It allows admin to define set of awards that could be granted to users for special accomplishments.

17 lines (14 loc) 463 B
import React from 'react'; import ReactDom from 'react-dom'; import { Provider } from 'react-redux'; import AwardsAcp from './awards-acp'; import {createReduxStore, getInitialState} from './model/store'; export function init() { let store = createReduxStore(getInitialState()); return ReactDom.render( <Provider store={ store }> <AwardsAcp /> </Provider>, document.getElementsByClassName('manage-awards')[0] ); }