@volr/react-ui 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,14 +16,17 @@ yarn add @volr/react-ui @volr/react
16
16
 
17
17
  ```tsx
18
18
  import { VolrUIProvider } from '@volr/react-ui';
19
+ import type { VolrConfig } from '@volr/react';
20
+
21
+ const volrConfig: VolrConfig = {
22
+ defaultChainId: 8453,
23
+ projectApiKey: 'your-project-api-key',
24
+ };
19
25
 
20
26
  function App() {
21
27
  return (
22
28
  <VolrUIProvider
23
- config={{
24
- defaultChainId: 8453,
25
- projectApiKey: 'your-project-api-key',
26
- }}
29
+ config={volrConfig}
27
30
  accentColor="#3b82f6"
28
31
  enabledLoginMethods={['email', 'social', 'siwe']}
29
32
  socialProviders={['google', 'twitter', 'apple']}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volr/react-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Volr React UI - UI components for Volr built on top of @volr/react",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",