diff --git a/example/src/components/header.tsx b/example/src/components/header.tsx index ae35eba..2c012d4 100644 --- a/example/src/components/header.tsx +++ b/example/src/components/header.tsx @@ -39,8 +39,8 @@ const Header = () => { href: '/cashout', }, { - title: 'USDC', - href: '/usdc', + title: 'Wands', + href: '/wands', }, ]; @@ -92,9 +92,9 @@ const Header = () => { Cashout - - - USDC + + + Wands diff --git a/example/src/main.tsx b/example/src/main.tsx index 33bfdb9..0f3fd89 100644 --- a/example/src/main.tsx +++ b/example/src/main.tsx @@ -9,7 +9,7 @@ import Marketplace from './routes/kyc'; import Header from './components/header'; import Layout from './components/layout'; import Kyc from './routes/kyc'; -import USDC from './routes/usdc'; +import Wands from './routes/wands'; import Payout from './routes/payout'; import { NextUIProvider } from '@nextui-org/react'; @@ -49,10 +49,10 @@ const router = createHashRouter([ ), }, { - path: '/usdc', + path: '/wands', element: ( - + ), }, diff --git a/example/src/routes/usdc.tsx b/example/src/routes/wands.tsx similarity index 79% rename from example/src/routes/usdc.tsx rename to example/src/routes/wands.tsx index b58f80d..c7e7aa2 100644 --- a/example/src/routes/usdc.tsx +++ b/example/src/routes/wands.tsx @@ -1,8 +1,8 @@ import { useState } from 'react'; -import { NoRampUSDC } from '../../../src'; +import { NoRampWands } from '../../../src'; import ThemeSwitcher from '../components/ui/theme-switcher/theme-switcher'; -const USDC = () => { +const Wands = () => { const [theme, setTheme] = useState<'light' | 'dark'>('dark'); const handleThemeChange = (checked: boolean) => { @@ -13,7 +13,7 @@ const USDC = () => {
-

USDC Widget

+

Wands Widget

@@ -21,11 +21,11 @@ const USDC = () => {
- +
); }; -export default USDC; +export default Wands; diff --git a/src/components/noramp-usdc/usdc.tsx b/src/components/noramp-wands/wands.tsx similarity index 91% rename from src/components/noramp-usdc/usdc.tsx rename to src/components/noramp-wands/wands.tsx index 4a8abf3..695c39c 100644 --- a/src/components/noramp-usdc/usdc.tsx +++ b/src/components/noramp-wands/wands.tsx @@ -1,11 +1,11 @@ import React from 'react'; import NoRampLogo from '../NoRampLogo'; -import { NoRampUSDCProps } from '../../types'; +import { NoRampWandsProps } from '../../types'; export const NoRampUSDC = ({ height = '440', width = '440', -}: NoRampUSDCProps) => { +}: NoRampWandsProps) => { let src = `https://usdc.noramp.io/swap`; const [openWidget, setOpenWidget] = React.useState(false); diff --git a/src/index.tsx b/src/index.tsx index dd26af7..d59a097 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,7 +2,7 @@ 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 { NoRampUSDC } from './components/noramp-usdc/usdc'; +export { NoRampWands } from './components/noramp-wands/wands'; export { useNoRampModal } from './hooks/useNoRampModal'; // export { NoRampConnect } from './components/noramp-connect/connect'; // export { NoRampConnectProvider } from './components/noramp-connect-provider/connect-provider'; diff --git a/src/types.ts b/src/types.ts index 383ebfb..7d75da0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -28,7 +28,7 @@ export type NoRampConfig = { userCanEditWalletAddress?: string; }; -export type NoRampUSDCProps = { +export type NoRampWandsProps = { theme?: 'light' | 'dark' | null; height?: string; width?: string;