domains
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
VITE_TOKEN_NAME = 'admin_token'
|
VITE_TOKEN_NAME = 'admin_token'
|
||||||
VITE_REFRESH_TOKEN_NAME = 'admin_refresh_token'
|
VITE_REFRESH_TOKEN_NAME = 'admin_refresh_token'
|
||||||
# VITE_BASE_URL = 'https://api.danakcorp.com'
|
# VITE_BASE_URL = 'https://api.danakcorp.com'
|
||||||
VITE_BASE_URL = 'http://172.27.254.88:3500'
|
VITE_BASE_URL = 'http://192.168.99.181:3500'
|
||||||
@@ -1,6 +1,13 @@
|
|||||||
import { type FC } from 'react'
|
import { type FC } from 'react'
|
||||||
|
import { useGetDomains } from './hooks/useDmailData'
|
||||||
|
|
||||||
const Domains: FC = () => {
|
const Domains: FC = () => {
|
||||||
|
|
||||||
|
const { data } = useGetDomains()
|
||||||
|
|
||||||
|
console.log('data', data);
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>Domains</div>
|
<div>Domains</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ import ShopsList from '../pages/dkala/shop/List.tsx'
|
|||||||
import DkalaSmsCountList from '../pages/dkala/shop/SmsCountList.tsx'
|
import DkalaSmsCountList from '../pages/dkala/shop/SmsCountList.tsx'
|
||||||
import UpdateShop from '../pages/dkala/shop/Update.tsx'
|
import UpdateShop from '../pages/dkala/shop/Update.tsx'
|
||||||
import SubscriptionsList from '../pages/subscriptions/List.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
|
// import WarningsList from '../pages/dmenu/reports/List' // TODO: Create this component
|
||||||
const MainRouter: FC = () => {
|
const MainRouter: FC = () => {
|
||||||
|
|
||||||
@@ -195,6 +196,8 @@ const MainRouter: FC = () => {
|
|||||||
<Route path={Pages.dkala.shops.update + ':id'} element={<UpdateShop />} />
|
<Route path={Pages.dkala.shops.update + ':id'} element={<UpdateShop />} />
|
||||||
|
|
||||||
<Route path={Pages.subscriptions.list} element={<SubscriptionsList />} />
|
<Route path={Pages.subscriptions.list} element={<SubscriptionsList />} />
|
||||||
|
|
||||||
|
<Route path={Pages.dmail.list} element={<Domains />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user