Skip to content

Commit

Permalink
fix: fixed urban router import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
katungi committed May 18, 2024
1 parent da77f41 commit 49ccf1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/urban-core/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter as Router } from 'react-router-dom'
import { Router as UrbanRouter } from '../utils/router'

// migrate to this when the below is fixed
// import { Router as UrbanRouter } from 'urban-router'
import { UrbanRouter } from 'urban-router'

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>

<Router>
<UrbanRouter />
</Router>

<UrbanRouter />
</React.StrictMode>,
)
8 changes: 8 additions & 0 deletions packages/urban-core/src/pages/products.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default function Products() {
return (
<div>
<h1>Products</h1>
<a href="/">Home</a>
</div>
)
}

0 comments on commit 49ccf1e

Please sign in to comment.