Skip to content

Commit

Permalink
Merge pull request #3 from optile/PCPAY-2308
Browse files Browse the repository at this point in the history
Replaces browser router with hash router
  • Loading branch information
AnwerAR authored Aug 26, 2024
2 parents 523b959 + 19e3468 commit abab3fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { RouterProvider } from "react-router-dom";
import { createHashRouter, RouterProvider } from "react-router-dom";
import { MainContextProvider } from "./contexts/MainContext";
import { currentLang, getCountryDetails } from "./constants";
import { createBrowserRouter } from "react-router-dom";
import Checkout from "./pages/Checkout.jsx";
import Success from "./pages/Success.jsx";
import Cancel from "./pages/Cancel.jsx";
import { useState } from "react";

const router = createBrowserRouter([
const router = createHashRouter([
{
path: "",
element: <Checkout />,
Expand Down

0 comments on commit abab3fd

Please sign in to comment.