diff --git a/example/src/components/header.tsx b/example/src/components/header.tsx
index 83c8302..52a0b71 100644
--- a/example/src/components/header.tsx
+++ b/example/src/components/header.tsx
@@ -26,10 +26,6 @@ const Header = () => {
title: 'KYC',
href: '/kyc',
},
- {
- title: 'Payout',
- href: '/payout',
- },
{
title: 'Connect',
href: '/connect',
@@ -71,13 +67,9 @@ const Header = () => {
className="text-gray-400 hover:text-gray-200"
isActive={location.pathname === '/kyc'}
>
- KYC
-
-
-
- Payout Widget
-
KYC Widget
- -- Sign up on{' '} - - app.noramp.io - {' '} - , create a Marketplace App and register sellers in order to get the - token. -
-
- {`import { NoRampKyc } from 'norampkit';
-
- `}
-
- Sign up on{' '} - app.noramp.io + dash.noramp.io {' '} , create a Marketplace App and register sellers in order to get the token.
-
+
{`import { NoRampPayout } from 'norampkit';
{
- const baseUrl = getNoRampAppBaseUrl(testnet);
-
- let src = `${baseUrl}/embed/kyc/${token}?theme=${theme}`;
-
- const isPreview = token === 'preview';
-
- if (isPreview) {
- src += '&preview=true';
- }
-
- return ;
-};
diff --git a/src/components/noramp-kyc/styles.css b/src/components/noramp-kyc/styles.css
deleted file mode 100644
index d74740b..0000000
--- a/src/components/noramp-kyc/styles.css
+++ /dev/null
@@ -1,74 +0,0 @@
-@font-face {
- font-family: 'Roobert';
- src: url('./fonts/roobert-regular.woff2') format('woff2');
-}
-.button {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 0px 18px 0px 14px;
- font-size: 14px;
- font-weight: 600;
- text-align: left;
- border-radius: 4px;
- z-index: 10;
- transition: 0.2s ease-in-out;
- height: 40px;
- position: relative;
- border: none;
- cursor: pointer;
- font-family: 'Roobert', sans-serif;
-}
-
-.button:disabled::before {
- content: '';
- position: absolute;
- inset: -1px;
- border-radius: 4px;
- /* background-color: rgba(255, 255, 255, 0.5); */
- cursor: not-allowed;
-}
-
-/* light theme */
-
-.button-light {
- background-color: #ffffff;
-
- color: #000000;
-}
-
-.button-light:hover {
- background-color: rgba(255, 255, 255, 0.75);
-}
-
-.button-light:disabled::before {
- background-color: rgba(255, 255, 255, 0.5);
-}
-
-/* dark theme */
-
-.button-dark {
- background-color: #000000;
-
- color: #ffffff;
-}
-
-.button-dark:hover {
- /* background-color: #2b3041; */
- background-color: rgba(0, 0, 0, 0.75);
-}
-
-.button-dark:disabled::before {
- background-color: rgba(0, 0, 0, 0.5);
-}
-
-/* others */
-
-.icon {
- width: 30px;
- height: 30px;
- display: flex;
- align-items: center;
- justify-content: center;
-}
diff --git a/src/components/noramp-payout/payout.tsx b/src/components/noramp-payout/payout.tsx
index 7907888..903b886 100644
--- a/src/components/noramp-payout/payout.tsx
+++ b/src/components/noramp-payout/payout.tsx
@@ -1,20 +1,19 @@
-import React from 'react';
-
import './styles.css';
+import React from 'react';
-import { getNoRampAppBaseUrl } from '../../utils/noramp-app';
import { NoRampPayoutProps } from '../../types';
+import { getNoRampPayoutBaseUrl } from '../../utils/noramp-app';
export const NoRampPayout = ({
token,
testnet = false,
theme = 'dark',
- height = '400',
+ height = '440',
width = '100%',
}: NoRampPayoutProps) => {
- const baseUrl = getNoRampAppBaseUrl(testnet);
+ const baseUrl = getNoRampPayoutBaseUrl(testnet);
- let src = `${baseUrl}/embed/payout/${token}?theme=${theme}`;
+ let src = `${baseUrl}/${token}?theme=${theme}`;
const isPreview = token === 'preview';
diff --git a/src/index.tsx b/src/index.tsx
index 39395a3..7941c6b 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,6 +1,5 @@
export { NoRampCheckout } from './components/noramp-checkout/checkout';
export { NoRampPayout } from './components/noramp-payout/payout';
-export { NoRampKyc } from './components/noramp-kyc/kyc';
export { NoRampCashout } from './components/noramp-cashout/cashout';
export { useNoRampModal } from './hooks/useNoRampModal';
// export { NoRampConnect } from './components/noramp-connect/connect';
diff --git a/src/types.ts b/src/types.ts
index ee6adbe..f55834b 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -29,14 +29,6 @@ export type NoRampConfig = {
userCanEditWalletAddress?: string;
};
-export type NoRampKycProps = {
- token: string;
- testnet?: boolean;
- theme?: 'light' | 'dark' | null;
- height?: string;
- width?: string;
-};
-
export type NoRampCashoutProps = {
testnet?: boolean;
theme?: 'light' | 'dark' | null;
diff --git a/src/utils/noramp-app.ts b/src/utils/noramp-app.ts
index 0c2e9f1..6de0c07 100644
--- a/src/utils/noramp-app.ts
+++ b/src/utils/noramp-app.ts
@@ -5,3 +5,9 @@ export function getNoRampAppBaseUrl(testnet: boolean): string {
return baseUrl;
}
+
+export function getNoRampPayoutBaseUrl(testnet: boolean): string {
+ const baseUrl = testnet ? 'https://kyc.noramp.dev' : 'https://kyc.noramp.io';
+
+ return baseUrl;
+}