diff --git a/ui/.prettierrc b/ui/.prettierrc
index 65b362d..43fe6c4 100644
--- a/ui/.prettierrc
+++ b/ui/.prettierrc
@@ -6,6 +6,7 @@
"arrowParens": "avoid",
"singleQuote": false,
"plugins": ["prettier-plugin-tailwindcss"],
- "tailwindFunctions": ["clsx"],
- "printWidth": 90
+ "tailwindFunctions": ["clsx", "cx"],
+ "printWidth": 90,
+ "tailwindStylesheet": "./src/index.css"
}
diff --git a/ui/src/components/AutoHeight.tsx b/ui/src/components/AutoHeight.tsx
index fbcf9cf..75fda8a 100644
--- a/ui/src/components/AutoHeight.tsx
+++ b/ui/src/components/AutoHeight.tsx
@@ -22,7 +22,7 @@ const AutoHeight = ({ children, ...props }: { children: React.ReactNode }) => {
{...props}
height={height}
duration={300}
- contentClassName="h-fit"
+ contentClassName="h-fit p-px"
contentRef={contentDiv}
disableDisplayNone
>
diff --git a/ui/src/components/Checkbox.tsx b/ui/src/components/Checkbox.tsx
index cdf29c5..cf9855d 100644
--- a/ui/src/components/Checkbox.tsx
+++ b/ui/src/components/Checkbox.tsx
@@ -12,7 +12,7 @@ const sizes = {
const checkboxVariants = cva({
base: cx(
- "block rounded",
+ "form-checkbox block rounded",
// Colors
"border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-800 checked:accent-blue-700 checked:dark:accent-blue-500 transition-colors",
diff --git a/ui/src/components/DhcpLeaseCard.tsx b/ui/src/components/DhcpLeaseCard.tsx
new file mode 100644
index 0000000..8a6e59c
--- /dev/null
+++ b/ui/src/components/DhcpLeaseCard.tsx
@@ -0,0 +1,212 @@
+import { LuRefreshCcw } from "react-icons/lu";
+
+import { Button } from "@/components/Button";
+import { GridCard } from "@/components/Card";
+import { LifeTimeLabel } from "@/routes/devices.$id.settings.network";
+import { NetworkState } from "@/hooks/stores";
+
+export default function DhcpLeaseCard({
+ networkState,
+ setShowRenewLeaseConfirm,
+}: {
+ networkState: NetworkState;
+ setShowRenewLeaseConfirm: (show: boolean) => void;
+}) {
+ return (
+
+ DHCP Lease Information
+
+
+
+ IPv6 Information
+
+
+ IPv6 Addresses
+ {networkState.ipv6_addresses.map(
+ addr => (
+
@@ -460,7 +459,7 @@ function BrowserFileView({ ) : (
@@ -483,7 +482,7 @@ function BrowserFileView({
@@ -827,7 +826,7 @@ function DeviceFileView({
@@ -1365,7 +1364,7 @@ function UploadFileView({ {/* Display upload error if present */} {uploadError && (
An error occurred while attempting to mount the media. Please try again. @@ -1481,8 +1480,8 @@ function PreUploadedImageItem({ }} >