mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Adding investments to the product array * Adding investments to the product array in the test as well * Updating product array to match latest library code * Updating product array to match latest library code * Adding name to definitions by list
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
import * as React from 'react';
|
|
import PlaidLink from 'react-plaid-link';
|
|
|
|
import { render } from 'react-dom';
|
|
|
|
// render(<PlaidLink />, document.getElementById('app'));
|
|
|
|
const AllProps = () => {
|
|
return (
|
|
<PlaidLink
|
|
apiVersion="test"
|
|
clientName="test"
|
|
env="tartan"
|
|
institution="test"
|
|
publicKey="123123asdasd123123"
|
|
product={[
|
|
'connect',
|
|
'info',
|
|
'auth',
|
|
'identity',
|
|
'income',
|
|
'transactions',
|
|
'assets',
|
|
'liabilities',
|
|
'investments',
|
|
'payment_initiation',
|
|
]}
|
|
token="test"
|
|
user={{ legalName: 'Keevan', emailAddress: 'testuser@gmail.com' }}
|
|
selectAccount={true}
|
|
webhook="yes please"
|
|
onSuccess={(publicToken, metadata) => {}}
|
|
onExit={(error, metadata) => {}}
|
|
onLoad={() => {}}
|
|
onEvent={(eventName, metadata) => {}}
|
|
style={{ backgroundColor: 'blue' }}
|
|
className="new-classname"
|
|
/>
|
|
);
|
|
};
|
|
|
|
const RequiredProps = () => {
|
|
return (
|
|
<PlaidLink
|
|
clientName="test"
|
|
env="sandbox"
|
|
publicKey="test"
|
|
product={['info']}
|
|
onSuccess={(publicToken, metadata) => {}}
|
|
/>
|
|
);
|
|
};
|
|
|
|
render(<AllProps />, document.getElementById('app'));
|
|
render(<RequiredProps />, document.getElementById('app'));
|