Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 411ebf7

Browse files
committed
feat: added tooltip to warn about multiple wallets
1 parent dba8d6f commit 411ebf7

File tree

7 files changed

+511
-453
lines changed

7 files changed

+511
-453
lines changed
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
import React, { FC } from 'react';
1+
import { FC } from 'react';
2+
import ProviderInfo from '../../models/ProviderInfo';
23
export interface LoginOptionProps {
34
className?: string;
4-
onClick: () => void;
5-
content: React.ReactElement;
5+
onClick?: () => void;
6+
providerInfo?: ProviderInfo;
67
}
8+
/**
9+
* If not providerInfo is received, we assume there's no provider available and so suggest to install Nifty waller
10+
* Same happens when no onClick is provided. We open the Nifty page on a new tab
11+
*/
712
declare const LoginOption: FC<LoginOptionProps>;
813
export default LoginOption;

0 commit comments

Comments
 (0)