refactor(scanner): more scanner admin stuff
This commit is contained in:
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user