Commit c9ab7a02 by Arjun Jhukal

updated the withdrawl and layout

parent 13e3756b
import DashboardLayout from '@/components/layouts/DashboardLayout'
import Private from '@/routes/Private' import Private from '@/routes/Private'
import ServerPrivate from '@/routes/ServerPrivate' import ServerPrivate from '@/routes/ServerPrivate'
import React from 'react' import React from 'react'
...@@ -5,7 +6,9 @@ import React from 'react' ...@@ -5,7 +6,9 @@ import React from 'react'
export default function PrivateUserLayout({ children }: { children: React.ReactNode }) { export default function PrivateUserLayout({ children }: { children: React.ReactNode }) {
return ( return (
<ServerPrivate> <ServerPrivate>
{children} <DashboardLayout>
{children}
</DashboardLayout>
</ServerPrivate> </ServerPrivate>
) )
} }
...@@ -46,7 +46,7 @@ export const transactionApi = createApi({ ...@@ -46,7 +46,7 @@ export const transactionApi = createApi({
if (per_page) params.append('page_size', per_page.toString()); if (per_page) params.append('page_size', per_page.toString());
const queryString = params.toString(); const queryString = params.toString();
return { return {
url: `/api//user/withdrawl${queryString ? `?${queryString}` : ''}`, url: `/api/user/withdrawl${queryString ? `?${queryString}` : ''}`,
method: "GET" method: "GET"
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment