0.1.32 • Published 3 years ago
pj-package-portal-verifyme-test v0.1.32
Picklejar Package: Portal Verify Me
Description
Picklejar portal verify me is a package that provides a PicklejarIDVerification component.
Installation
yarn install picklejar-package-portal-vefirymePicklejar ID Verification Landing Page Usage
- Import the package
import { PicklejarIDVerification } from 'package-portal-verifyme';- Wrap your app with the
AppContext,UserProvider,NotificationProviderandThemeProvidercomponents
<PicklejarIDVerification redirectOnSuccess={PICKLEJAR_DEFAULT_PROFILE_PAGE_URL}/>;Picklejar ID Verification Landing Page Usage
- Import the package
import { PicklejarIDVerification } from 'package-portal-verifyme';- Wrap your app with the
AppContext,UserProvider,NotificationProviderandThemeProvidercomponents
const App = props => {
const { sessionKey } = props;
const environment = useMemo(() => getEnvironment(), []);
const apiHost = getApiHost(environment);
const host = getHost(environment);
const appContextValue = useMemo(() => (
{ host, apiHost }
), [host, apiHost]);
return (
<AppContext.Provider value={appContextValue}>
<UserProvider sessionKey={sessionKey}>
<NotificationProvider>
<NotificationBar/>
<UserContext.Consumer>
{context => {
const { isLogged, status } = context;
return (
<ThemeProvider theme={PicklejarTheme}>
<div className="App">
...
<Routes>
{isLogged && <Route
exact
path="/verify-id"
element={<PicklejarIDVerification redirectOnSuccess={PICKLEJAR_DEFAULT_PROFILE_PAGE_URL}/>}
/>}
</Routes>
...
</div>
</ThemeProvider>
);
}}
</UserContext.Consumer>
</NotificationProvider>
</UserProvider>
</AppContext.Provider>
);
};
App.defaultProps = {
sessionKey: 'session_key_value'
};
App.propTypes = {
sessionKey: PropTypes.string
};
export default App;0.1.32
3 years ago
0.1.31
3 years ago
0.1.29
3 years ago
0.1.28
3 years ago
0.1.27
3 years ago
0.1.26
3 years ago
0.1.25
3 years ago
0.1.24
3 years ago
0.1.23
3 years ago
0.1.22
3 years ago
0.1.21
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago