1

我需要在 Admin-On-Rest 中实现扩展“react-redux-toastr”。我如何将此代码插入 APP-Root

<ReduxToastr
      timeOut={4000}
      newestOnTop={false}
      preventDuplicates
      position="top-left"
      transitionIn="fadeIn"
      transitionOut="fadeOut"
      progressBar/>

这是行不通的

<Admin customReducers={{ watchlistAdd: researchReducer, toastr: toastrReducer  }} title="ProAmz" menu={Menu} restClient={jsonServerRestClient('http://dell.does-it.net:3306/api/v1')}>
        <Resource  name="amazon_products" title="Produkte" list={ProductList}/>
        <Resource  name="Watchlist" title="Watchlist" list={Watchlist} />
        <div>

        <ReduxToastr
      timeOut={4000}
      newestOnTop={false}
      preventDuplicates
      position="top-left"
      transitionIn="fadeIn"
      transitionOut="fadeOut"
      progressBar/>

        </div>


    </Admin>

我不会使用“自定义应用程序” https://marmelab.com/admin-on-rest/CustomApp.html版本。

4

0 回答 0