diff --git a/.env b/.env index 53acdda..a20f615 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ VITE_TOKEN_NAME = 'admin_token' VITE_REFRESH_TOKEN_NAME = 'admin_refresh_token' # VITE_BASE_URL = 'https://api.danakcorp.com' -VITE_BASE_URL = 'http://172.27.254.88:3500' \ No newline at end of file +VITE_BASE_URL = 'http://192.168.99.181:3500' \ No newline at end of file diff --git a/src/pages/dmail/Domains.tsx b/src/pages/dmail/Domains.tsx index 85ad0a3..4699ce7 100644 --- a/src/pages/dmail/Domains.tsx +++ b/src/pages/dmail/Domains.tsx @@ -1,6 +1,13 @@ import { type FC } from 'react' +import { useGetDomains } from './hooks/useDmailData' const Domains: FC = () => { + + const { data } = useGetDomains() + + console.log('data', data); + + return (
Domains
) diff --git a/src/router/Main.tsx b/src/router/Main.tsx index 5f3c085..7a331c0 100644 --- a/src/router/Main.tsx +++ b/src/router/Main.tsx @@ -90,6 +90,7 @@ import ShopsList from '../pages/dkala/shop/List.tsx' import DkalaSmsCountList from '../pages/dkala/shop/SmsCountList.tsx' import UpdateShop from '../pages/dkala/shop/Update.tsx' import SubscriptionsList from '../pages/subscriptions/List.tsx' +import Domains from '../pages/dmail/Domains.tsx' // import WarningsList from '../pages/dmenu/reports/List' // TODO: Create this component const MainRouter: FC = () => { @@ -195,6 +196,8 @@ const MainRouter: FC = () => { } /> } /> + + } />