refactor: rename OTA Manager to Pipely in UI, simplify logout

- Change login page title from "OTA Manager" to "Pipely"
- Remove setToken call from Layout logout handler
This commit is contained in:
2026-07-07 14:47:13 +08:00
parent 033082954a
commit 3a6cd42361
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -1,5 +1,4 @@
import { NavLink, useNavigate, Outlet } from "react-router-dom" import { NavLink, useNavigate, Outlet } from "react-router-dom"
import { setToken } from "@/shared/web-client"
import { import {
Drawer, Drawer,
List, List,
@@ -27,7 +26,6 @@ export default function Layout() {
const navigate = useNavigate() const navigate = useNavigate()
function handleLogout() { function handleLogout() {
setToken(null)
navigate("/") navigate("/")
} }
+1 -1
View File
@@ -45,7 +45,7 @@ export default function Login() {
alignItems: "center", alignItems: "center",
}}> }}>
<Typography component="h1" variant="h4" sx={{ mb: 2 }}> <Typography component="h1" variant="h4" sx={{ mb: 2 }}>
OTA Manager Pipely
</Typography> </Typography>
<Typography variant="body2" color="text.secondary" sx={{ mb: 4 }}> <Typography variant="body2" color="text.secondary" sx={{ mb: 4 }}>
Sign in to manage updates Sign in to manage updates