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 - + Payout + Connect diff --git a/example/src/main.tsx b/example/src/main.tsx index 6bacf97..d43b54c 100644 --- a/example/src/main.tsx +++ b/example/src/main.tsx @@ -1,17 +1,14 @@ +import { NextUIProvider } from '@nextui-org/react'; import React from 'react'; import ReactDOM from 'react-dom/client'; -import './index.css'; import { RouterProvider, createHashRouter } from 'react-router-dom'; -import Home from './routes/home'; +import Layout from './components/layout'; +import './index.css'; +import Cashout from './routes/cashout'; import Checkout from './routes/checkout'; import Connect from './routes/connect'; -import Marketplace from './routes/kyc'; -import Header from './components/header'; -import Layout from './components/layout'; -import Kyc from './routes/kyc'; +import Home from './routes/home'; import Payout from './routes/payout'; -import { NextUIProvider } from '@nextui-org/react'; -import Cashout from './routes/cashout'; const router = createHashRouter([ { @@ -46,14 +43,6 @@ const router = createHashRouter([ ), }, - { - path: '/kyc', - element: ( - - - - ), - }, { path: '/payout', element: ( diff --git a/example/src/routes/home.tsx b/example/src/routes/home.tsx index d51260c..d77f4aa 100644 --- a/example/src/routes/home.tsx +++ b/example/src/routes/home.tsx @@ -46,13 +46,6 @@ export default function Home() { KYC Widget -
- - Payout Widget -

Documentation

diff --git a/example/src/routes/kyc.tsx b/example/src/routes/kyc.tsx deleted file mode 100644 index 23ac83b..0000000 --- a/example/src/routes/kyc.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import { useState } from 'react'; -import { NoRampKyc } from '../../../src'; -import ThemeSwitcher from '../components/ui/theme-switcher/theme-switcher'; - -const Kyc = () => { - const [theme, setTheme] = useState<'light' | 'dark'>('dark'); - - const handleThemeChange = (checked: boolean) => { - setTheme(checked ? 'dark' : 'light'); - }; - - return ( -
-
-
-

KYC Widget

- -
- -
-
- -
- -
- -
-

Usage

-

- Sign up on{' '} - - app.noramp.io - {' '} - , create a Marketplace App and register sellers in order to get the - token. -

-
-            {`import { NoRampKyc } from 'norampkit';
-
-`}
-          
-
-
-
- ); -}; - -export default Kyc; diff --git a/example/src/routes/payout.tsx b/example/src/routes/payout.tsx index edc06cd..902f4d4 100644 --- a/example/src/routes/payout.tsx +++ b/example/src/routes/payout.tsx @@ -21,7 +21,11 @@ const Payout = () => {
- +
@@ -29,15 +33,15 @@ const Payout = () => {

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