mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
refactor web file structure and seperate settings from status
This commit is contained in:
@@ -16,11 +16,9 @@ const LayoutAppBar: FC<LayoutAppBarProps> = ({ title, onToggleDrawer }) => {
|
||||
const pathnames = useLocation()
|
||||
.pathname.split('/')
|
||||
.filter((x) => x);
|
||||
const show_back = pathnames.length > 1;
|
||||
|
||||
const navigate = useNavigate();
|
||||
let show_back = false;
|
||||
if (pathnames.length > 1) {
|
||||
show_back = pathnames[0] !== 'system' || pathnames[1] === 'espsystemstatus';
|
||||
}
|
||||
|
||||
return (
|
||||
<AppBar
|
||||
|
||||
Reference in New Issue
Block a user