Skip to content

Commit cee8258

Browse files
committed
dashboard: Add search box and link to URL
Adds an input form for searching job names. Searches are appended to the URL. Fixes #4 Signed-off-by: Anna Finn <[email protected]>
1 parent 7549895 commit cee8258

File tree

2 files changed

+417
-84
lines changed

2 files changed

+417
-84
lines changed

components/searchForm.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export const SearchForm = ({ handleSearch }) => {
2+
return (
3+
<div className="flex flex-col items-center md:text-base text-xs">
4+
<div className="flex min-[1126px]:justify-end justify-center w-full">
5+
<form className="p-2 bg-gray-700 rounded-md flex flex-row" onSubmit={(e) => handleSearch(e)}>
6+
<div className="mx-2">
7+
<label className="block text-white">Search Text:</label>
8+
<input type="text" name="value" required></input>
9+
</div>
10+
</form>
11+
</div>
12+
</div>
13+
);
14+
};

0 commit comments

Comments
 (0)