diff --git a/src/components/cahoot/DeadlineCarousel.tsx b/src/components/cahoot/DeadlineCarousel.tsx index cb5c0af..fb6021e 100644 --- a/src/components/cahoot/DeadlineCarousel.tsx +++ b/src/components/cahoot/DeadlineCarousel.tsx @@ -35,7 +35,7 @@ const DeadlineCarousel = () => { )} -
+
{title}
diff --git a/src/components/common/Search.tsx b/src/components/common/Search.tsx index 6408680..b7ca8ba 100644 --- a/src/components/common/Search.tsx +++ b/src/components/common/Search.tsx @@ -1,10 +1,24 @@ +import { useRef } from 'react'; + import Icon from './Icons'; const Search = () => { + const submitRef = useRef(null); + + const onChange = (e: React.ChangeEvent) => { + if (!submitRef.current) return; + if (e.target.value === '') { + submitRef.current.click(); + } + }; + return (
- +