refactor(scanner): more scanner admin stuff

This commit is contained in:
2026-05-13 20:51:22 -05:00
parent 2616acf106
commit eb950d2c29
7 changed files with 242 additions and 26 deletions

View File

@@ -22,7 +22,7 @@ export default function TabsLayout() {
const isUnlocked = useMobileAuthStore((s) => s.isUnlocked);
const port = parseInt(serverPort || "0", 10) >= 50000;
console.log(port);
if (!port) {
if (!user || !isUnlocked) {
return <Redirect href="/login" />;
@@ -58,14 +58,14 @@ export default function TabsLayout() {
// },
}}
/>
<Tabs.Screen
{/* <Tabs.Screen
name="ppoo"
options={{
title: "PPOO",
href: isNormalScanner ? null : "/(tabs)/ppoo",
tabBarIcon: ({ color, size }) => <Boxes size={size} color={color} />,
}}
/>
/> */}
<Tabs.Screen
name="laneCheck"
options={{