Fixed some unimplemented login redirects on Inventory and Logs page when not logged in

This commit is contained in:
keannu125 2023-03-07 23:29:38 +08:00
parent b5beceff5f
commit 52f115c610
2 changed files with 3 additions and 0 deletions

View file

@ -46,6 +46,7 @@ export default function Products() {
} else if (error) { } else if (error) {
return ( return (
<div> <div>
<LoginChecker />
<div style={styles.content_row}> <div style={styles.content_row}>
<div style={{ ...styles.content_row, ...{ flex: 1 } }}> <div style={{ ...styles.content_row, ...{ flex: 1 } }}>
<div style={{ display: "flex", alignItems: "center", gap: 16 }}> <div style={{ display: "flex", alignItems: "center", gap: 16 }}>
@ -66,6 +67,7 @@ export default function Products() {
} }
return ( return (
<div> <div>
<LoginChecker />
<div style={styles.content_row}> <div style={styles.content_row}>
<div style={{ ...styles.content_row, ...{ flex: 1 } }}> <div style={{ ...styles.content_row, ...{ flex: 1 } }}>
<div style={{ display: "flex", alignItems: "center", gap: 16 }}> <div style={{ display: "flex", alignItems: "center", gap: 16 }}>

View file

@ -55,6 +55,7 @@ export default function Inventory() {
} else if (error) { } else if (error) {
return ( return (
<div> <div>
<LoginChecker />
<div style={styles.content_row}> <div style={styles.content_row}>
<div style={{ ...styles.content_row, ...{ flex: 1 } }}> <div style={{ ...styles.content_row, ...{ flex: 1 } }}>
<div style={{ display: "flex", alignItems: "center", gap: 16 }}> <div style={{ display: "flex", alignItems: "center", gap: 16 }}>