Skip to content

Commit

Permalink
chore: adjust navbar to current items
Browse files Browse the repository at this point in the history
  • Loading branch information
jgleal committed Dec 12, 2023
1 parent e314c1a commit e782ce2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/components/NavBar/components/NavBarItems/NavBarItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { StyledNavItem } from './NavBarItems.styles'
import { useTranslation } from 'react-i18next'

const MENU_ITEMS = [
{ name: 'docs', path: '/' },
{ name: 'solutions', path: '/' },
{ name: 'home', path: '/' },
{ name: 'fetchExample', path: '/fetch-example' },
{ name: 'aboutUs', path: '/about' }
]
Expand Down
3 changes: 1 addition & 2 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"startButton": "Start now"
},
"navBarItems": {
"docs": "Docs",
"solutions": "Solutions",
"home": "Home",
"fetchExample": "Fetch example",
"aboutUs": "About us"
},
Expand Down
3 changes: 1 addition & 2 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"startButton": "Comenzar ahora"
},
"navBarItems": {
"docs": "Docs",
"solutions": "Soluciones",
"home": "Home",
"fetchExample": "Ejemplo de fetch",
"aboutUs": "Sobre nosotros"
},
Expand Down
14 changes: 0 additions & 14 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,3 @@ button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}

a:hover {
color: #747bff;
}

button {
background-color: #f9f9f9;
}
}
2 changes: 1 addition & 1 deletion src/routes/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const routes: RouteType[] = [

export const AppRouter = () => {
return (
<BrowserRouter basename='/shieldjs'>
<BrowserRouter basename='/shieldjs/'>
<Routes>
{routes.map(({ key, path, element }: RouteType) => (
<Route key={key} path={path} element={element} />
Expand Down

0 comments on commit e782ce2

Please sign in to comment.