Skip to content

Commit

Permalink
feat(gh-pages): remove browser router
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Nov 2, 2023
1 parent cd9529b commit 2495829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/sample-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sample-app-react",
"version": "0.0.0",
"private": true,
"homepage": "https://vechainfoundation.github.io/vechain-dapp-kit/react/",
"homepage": ".",
"main": "src/index.js",
"scripts": {
"build": "yarn compile && react-app-rewired build",
Expand Down
13 changes: 1 addition & 12 deletions apps/sample-react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';
import type { Options } from '@vechain/connex';
import type { WalletConnectOptions } from '@vechain/wallet-connect';
import { ConnexProvider } from '@vechain/react-wallet-kit';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import { ChakraProvider } from '@chakra-ui/react';
import { NavBar, StyledContainer } from './Components/layout';
import { Homepage } from './Screens/Homepage';
Expand Down Expand Up @@ -37,17 +36,7 @@ export const App = (): JSX.Element => {
>
<NavBar />
<StyledContainer>
<BrowserRouter
basename={
process.env.NODE_ENV === 'production'
? '/vechain-dapp-kit/react/'
: '/'
}
>
<Routes>
<Route element={<Homepage />} path="/" />
</Routes>
</BrowserRouter>
<Homepage />
</StyledContainer>
</ConnexProvider>
</ChakraProvider>
Expand Down

0 comments on commit 2495829

Please sign in to comment.