From c61075795cde4c12fecdd5cfa548ca3d234c7d1f Mon Sep 17 00:00:00 2001 From: Sebastian Barrenechea Date: Thu, 16 May 2024 20:47:48 -0400 Subject: [PATCH] feat: add board model in about tab --- src/components/skeletons/about.tsx | 1 + src/lib/api/get.ts | 9 +++++---- src/routes/_tabLayout/about.lazy.tsx | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/skeletons/about.tsx b/src/components/skeletons/about.tsx index 17162f1..8920c03 100644 --- a/src/components/skeletons/about.tsx +++ b/src/components/skeletons/about.tsx @@ -5,6 +5,7 @@ export default function AboutSkeleton() { return (
+
diff --git a/src/lib/api/get.ts b/src/lib/api/get.ts index 1a773fc..68b17b5 100644 --- a/src/lib/api/get.ts +++ b/src/lib/api/get.ts @@ -22,12 +22,13 @@ interface PowerTabResponse { } interface AboutTabResponse { - api: string; - build_version: string; - buildroot: string; - buildtime: Date; + model: string; hostname: string; + api: string; version: string; + buildtime: Date; + buildroot: string; + build_version: string; } interface FlashStatus { diff --git a/src/routes/_tabLayout/about.lazy.tsx b/src/routes/_tabLayout/about.lazy.tsx index c44b51c..fdeb832 100644 --- a/src/routes/_tabLayout/about.lazy.tsx +++ b/src/routes/_tabLayout/about.lazy.tsx @@ -23,6 +23,7 @@ function About() { return (
+ {data.model} {data.hostname} {`v${data.version}`}