From d848844b04a0dcafe950ab6d856689734abaf086 Mon Sep 17 00:00:00 2001 From: reza Date: Mon, 7 Aug 2023 01:23:30 +0330 Subject: [PATCH] resolve gh-pages issue with router --- package.json | 2 +- src/App.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 30f8709..2206c2a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "bugs": { "url": "https://github.com/sheypoor/frontend-challenge/issues" }, - "homepage": "https://r3z4r.github.io/frontend-challenge", + "homepage": "https://r3z4r.github.io/frontend-challenge/", "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/App.jsx b/src/App.jsx index 3db9256..e0d7ff1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,5 +1,5 @@ import React from "react"; -import { Route, BrowserRouter as Router, Routes } from "react-router-dom"; +import { HashRouter as Router, Routes, Route } from "react-router-dom"; import "./styles.css"; import ProfileInfoCapture from "./componenets/steps/ProfileInfoCapture"; import PersonalInfoCapture from "./componenets/steps/PersonalInfoCapture";