diff --git a/engine/src/routes/index.html b/engine/src/routes/index.html
index 5d95433..ea9ded2 100644
--- a/engine/src/routes/index.html
+++ b/engine/src/routes/index.html
@@ -1,7 +1,7 @@
- enstate.rs - Lightweight ENS API
+ v3x.property - Asset Tracking API
diff --git a/web/src/components/ActiveSessionsTable.tsx b/web/src/components/ActiveSessionsTable.tsx
index d6e28b7..63c07a1 100644
--- a/web/src/components/ActiveSessionsTable.tsx
+++ b/web/src/components/ActiveSessionsTable.tsx
@@ -9,9 +9,9 @@ import { getRelativeTimeString } from '../util/date';
import { LeafletPreview } from './LeafletPreview';
const ActiveSession: FC<{ session: SessionResponse }> = ({ session }) => {
- const { data: sessions, mutate: updateSessions } = useSessions();
+ const { mutate: updateSessions } = useSessions();
const { token } = useAuth();
- const { data: geoip } = useGeoIp('77.162.232.110' /* session.user_ip */);
+ const { data: geoip } = useGeoIp(session.user_ip);
const user_agent = UAParser(session.user_agent);
const last_accessed = new Date(session.last_access);
const last_accessed_formatted = getRelativeTimeString(last_accessed);
@@ -28,16 +28,10 @@ const ActiveSession: FC<{ session: SessionResponse }> = ({ session }) => {
{geoip?.latitude && (
- {/*
*/}
- {/*
*/}
)}
@@ -105,8 +99,7 @@ const ActiveSession: FC<{ session: SessionResponse }> = ({ session }) => {
};
export const ActiveSessionsTable: FC = () => {
- const { data: sessions, mutate: updateSessions } = useSessions();
- const { token } = useAuth();
+ const { data: sessions } = useSessions();
return (
diff --git a/web/src/components/LeafletPreview.tsx b/web/src/components/LeafletPreview.tsx
index aa96168..764e3d8 100644
--- a/web/src/components/LeafletPreview.tsx
+++ b/web/src/components/LeafletPreview.tsx
@@ -19,7 +19,7 @@ export const LeafletPreview: FC<{ latitude: number; longitude: number }> = ({
lat: latitude,
lng: longitude,
}}
- zoom={8}
+ zoom={5}
scrollWheelZoom={false}
className="w-full h-full"
dragging={false}
@@ -32,7 +32,8 @@ export const LeafletPreview: FC<{ latitude: number; longitude: number }> = ({
>
);