11import { useLocation } from "preact-iso" ;
22import Nav from "react-bootstrap/Nav" ;
3- import { BACKEND } from "../utils" ;
3+ import { BACKEND , FRONTEN_URL } from "../utils" ;
44import { useTranslation } from "react-i18next" ;
5- import { Button , Container , Navbar , Row } from "react-bootstrap" ;
6- import { connected , connected_to } from "./charger_list" ;
5+ import { Navbar } from "react-bootstrap" ;
6+ import { connected } from "./charger_list" ;
77import Median from "median-js-bridge" ;
88import i18n from "../i18n" ;
99
@@ -18,12 +18,12 @@ export async function logout(logout_all: boolean) {
1818export function setAppNavigation ( ) {
1919 const items = [ {
2020 label : i18n . t ( "navbar.chargers" ) ,
21- url : "https://mystaging.warp-charger.com/ chargers" ,
21+ url : ` ${ FRONTEN_URL } / chargers` ,
2222 icon : "fas fa-server"
2323 } ,
2424 {
2525 label : i18n . t ( "navbar.user" ) ,
26- url : "https://mystaging.warp-charger.com/ user" ,
26+ url : ` ${ FRONTEN_URL } / user` ,
2727 icon : "fas fa-user"
2828 } ]
2929 Median . sidebar . setItems ( { items : items , enabled : true , persist : true } ) ;
0 commit comments