@layerfi/components 0.1.100 → 0.1.102-alpha
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.
- package/README.md +0 -24
- package/dist/cjs/index.cjs +3648 -2586
- package/dist/esm/index.mjs +3648 -2580
- package/dist/index.css +259 -111
- package/dist/index.d.ts +287 -5
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -70,30 +70,6 @@ import { LayerProvider } from "@layerfi/components";
|
|
|
70
70
|
|
|
71
71
|
## Components
|
|
72
72
|
|
|
73
|
-
### Onboarding
|
|
74
|
-
|
|
75
|
-
The onboarding component can be included on an accounting landing page to prompt users to connect accounts.
|
|
76
|
-

|
|
77
|
-
|
|
78
|
-
After connecting accounts, the component will change into a prompt to categorize transactions.
|
|
79
|
-

|
|
80
|
-
|
|
81
|
-
For a business that has already been onboarded, this component will render nothing, so it's safe to leave it on the default page for all businesses.
|
|
82
|
-
|
|
83
|
-
```tsx
|
|
84
|
-
<Onboarding onTransactionsToReviewClick={onTransactionsToReviewClick} />
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
This component has one primary prop: `onTransactionsToReviewClick` should be a function that navigates to the bank transactions to review page. For example, if the bank transaction categorization page lives on `/account/bank-transactions` within your app:
|
|
88
|
-
|
|
89
|
-
```tsx
|
|
90
|
-
<Onboarding
|
|
91
|
-
onTransactionsToReviewClick={() => navigate('/accounting/bank-transactions')}
|
|
92
|
-
/>
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
This prop is a function, so you can use your app's standard strategy for navigation.
|
|
96
|
-
|
|
97
73
|
### Bank Accounts & Transactions
|
|
98
74
|
|
|
99
75
|
#### Linked Accounts
|