From 640b05a73e9ef42e42aacb71c777534cf648f731 Mon Sep 17 00:00:00 2001 From: Anthony Saah Date: Tue, 24 Jun 2025 03:00:26 +0000 Subject: [PATCH] Added load recent logs btn added button to load recent logs --- app/components/filter.tsx | 77 ++++++++++++++++++++++----------------- uno.config.ts | 10 ++--- 2 files changed, 48 insertions(+), 39 deletions(-) diff --git a/app/components/filter.tsx b/app/components/filter.tsx index 90ed57b..6cfe2df 100644 --- a/app/components/filter.tsx +++ b/app/components/filter.tsx @@ -4,6 +4,7 @@ import React from "react"; import { Input } from "./input"; import { Select } from "./select"; import { useSearchParams } from "react-router-dom"; +import { Button } from "./button"; interface FilterForm { query: string; @@ -52,39 +53,47 @@ export function Filter({ onFilterChange }: FilterProps) { }, [watch, onFilterChange]); return ( -
- -
- +
+ + +
+ - ( - { - const val = e.target.value; - onChange(val ? parse(val, "yyyy-MM-dd", new Date()) : null); - }} - {...fieldProps} - /> - )} - /> -
-
- ); + ( + { + const val = e.target.value; + onChange(val ? parse(val, "yyyy-MM-dd", new Date()) : null); + }} + {...fieldProps} + /> + )} + /> +
+
+ ); } diff --git a/uno.config.ts b/uno.config.ts index 14ad68f..d44082c 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -8,9 +8,9 @@ import { } from "unocss"; export default defineConfig({ - content: { - filesystem: ["**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}"], - }, - presets: [presetWind3({ dark: "media" }), presetIcons(), presetForms()], - transformers: [transformerDirectives(), transformerVariantGroup()], + content: { + filesystem: ["app/**/*.{html,js,ts,tsx}"], + }, + presets: [presetWind3({ dark: "media" }), presetIcons(), presetForms()], + transformers: [transformerDirectives(), transformerVariantGroup()], });