Skip to content

Commit

Permalink
Remove QueryParamProvider and adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Onitoxan committed Dec 16, 2024
1 parent a8d5dcb commit 983081a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
44 changes: 0 additions & 44 deletions apps/hpc-ftsadmin/src/libs/useQueryParams.ts

This file was deleted.

8 changes: 1 addition & 7 deletions apps/hpc-ftsadmin/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import PageOrganizationsList from './app/pages/organizations/organization-list';
import PageOrganization from './app/pages/organizations/organization';

import { RouteParamsValidator } from './app/components/route-params-validator';
import { QueryParamProvider } from 'use-query-params';
import { ReactRouter7Adapter } from './libs/useQueryParams';

const rootElement = document.getElementById('root');
if (!rootElement) {
Expand All @@ -25,11 +23,7 @@ const root = ReactDOM.createRoot(rootElement);
const router = createBrowserRouter([
{
path: paths.home(),
element: (
<QueryParamProvider adapter={ReactRouter7Adapter}>
<App />
</QueryParamProvider>
),
element: <App />,
children: [
{ path: paths.home(), element: <Navigate to={paths.flows()} /> },
{ path: paths.flows(), element: <PageFlowsList /> },
Expand Down

0 comments on commit 983081a

Please sign in to comment.