Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Pangolin Components
Ui Kit for Pangolin
yarn add @pangolindex/components @gelatonetwork/limit-orders-react@2.4.0 @pangolindex/sdk
or
npm install @pangolindex/components @gelatonetwork/limit-orders-react@2.4.0 @pangolindex/sdk
Wrap your app with the PangolinProvider and pass the pangolin reducers into your redux store.
In your store pass the gelato reducers:
import { configureStore, getDefaultMiddleware } from "@reduxjs/toolkit";
import { save, load } from "redux-localstorage-simple";
import {
pangolinReducers,
PANGOLIN_PERSISTED_KEYS,
} from "@pangolindex/components";
const PERSISTED_KEYS: string[] = ["your_keys", ...PANGOLIN_PERSISTED_KEYS];
const store = configureStore({
reducer: {
...your_reducers,
...pangolinReducers,
},
middleware: [
...getDefaultMiddleware({ thunk: false }),
save({ states: PERSISTED_KEYS }),
],
preloadedState: load({ states: PERSISTED_KEYS }),
});
export default store;
In your main file wrap your app with PangolinProvider:
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import store from "./state";
import { useWeb3React, Web3ReactProvider } from "@web3-react/core";
import { Provider } from "react-redux";
import { PangolinProvider } from "@pangolindex/components";
import getLibrary from "./utils/getLibrary";
const AppProvider = () => {
const { library, account, chainId } = useWeb3React();
return (
<PangolinProvider
library={library}
chainId={chainId}
account={account as string}
>
<App />
</PangolinProvider>
);
};
ReactDOM.render(
<React.StrictMode>
<Web3ReactProvider getLibrary={getLibrary}>
<Provider store={store}>
<AppProvider />
</Provider>
</Web3ReactProvider>
</React.StrictMode>,
document.getElementById("root")
);
yarn in componentsyarn dev which will watch for any files changes and recompiles filesyalc link "@pangolindex/components" in the project where you want to use componentsIncase react hook violation error comes, in that case follow below steps also.
yarn link in <project_root>/node_modules/react.yarn link react in components which will symlink react which are being used by project.yarn publish which will build the components and publish to npm.Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 11.0.0Registry latest | 24 May 2022 | 80 | |
| 10.0.1 | 9 May 2022 | 66 | |
| 10.0.0 | 9 May 2022 | 66 | |
| 9.0.0 | 5 May 2022 | 66 | |
| 3.0.1 | 20 Apr 2022 | 66 | |
| 3.0.0 | 20 Apr 2022 | 66 | |
| 2.0.3 | 28 Feb 2022 | 47 | |
| 2.0.2 | 28 Feb 2022 | 47 | |
| 2.0.1 | 26 Feb 2022 | 47 | |
| 2.0.0 | 21 Feb 2022 | 47 | |
| 1.0.6 | 21 Feb 2022 | 47 | |
| 1.0.5 | 21 Feb 2022 | 47 | |
| 1.0.2 | 21 Feb 2022 | 47 | |
| 1.0.1 | 21 Feb 2022 | 47 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d2020456001bae4e77a2cf84ed834a9402b681e0534c285d9e4eb9243985c493