From be172efa179440078474c62d11b92071a88d4125 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Sun, 4 Aug 2024 10:49:13 +0700 Subject: [PATCH] refactor: update tailwind classes to v3 syntax (#345) Updated background/border opacity to the new syntax: - border-skin-fill border-opacity-40 => border-skin-fill/40 - selection:bg-skin-accent selection:bg-opacity-70 => selection:bg-skin-accent/70 --- src/components/Search.tsx | 9 +++------ src/styles/base.css | 30 ++++-------------------------- 2 files changed, 7 insertions(+), 32 deletions(-) diff --git a/src/components/Search.tsx b/src/components/Search.tsx index e6f39ff..1e43c07 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -1,5 +1,5 @@ import Fuse from "fuse.js"; -import { useEffect, useRef, useState, useMemo } from "react"; +import { useEffect, useRef, useState, useMemo, type FormEvent } from "react"; import Card from "@components/Card"; import type { CollectionEntry } from "astro:content"; @@ -26,7 +26,7 @@ export default function SearchBar({ searchList }: Props) { null ); - const handleChange = (e: React.FormEvent) => { + const handleChange = (e: FormEvent) => { setInputVal(e.currentTarget.value); }; @@ -83,10 +83,7 @@ export default function SearchBar({ searchList }: Props) { Search