Skip to content

Commit ff868f7

Browse files
removed extra clear button
1 parent dddc054 commit ff868f7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/components/Search/SearchInput.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from "react";
2-
import { MdClear, MdSearch } from "react-icons/md";
2+
import { MdSearch } from "react-icons/md";
33
import './css/style.css'
44
const errorType = ["push", "commit", "merge", "pull", "add", "branch"]
55
import useWindowsize from "../../hooks/useWindowsize";
@@ -23,9 +23,6 @@ function SearchInput({ search, setSearch, setType }) {
2323
placeholder="Search for errors"
2424
onChange={(e) => { setSearch(e.target.value); setType("") }}
2525
/>
26-
<button className="focus:outline-none" onClick={() => setSearch("")}>
27-
<MdClear className="text-gray text-xl" />
28-
</button>
2926
</form>
3027
<div className="types mt-4">
3128

0 commit comments

Comments
 (0)