Skip to content

Commit

Permalink
dashboard: Add search box and link to URL
Browse files Browse the repository at this point in the history
Adds an input form for searching job names. Searches are appended to the URL.

Fixes kata-containers#4

Signed-off-by: Anna Finn <[email protected]>
  • Loading branch information
afinn12 committed Dec 6, 2024
1 parent 7549895 commit cee8258
Show file tree
Hide file tree
Showing 2 changed files with 417 additions and 84 deletions.
14 changes: 14 additions & 0 deletions components/searchForm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const SearchForm = ({ handleSearch }) => {
return (
<div className="flex flex-col items-center md:text-base text-xs">
<div className="flex min-[1126px]:justify-end justify-center w-full">
<form className="p-2 bg-gray-700 rounded-md flex flex-row" onSubmit={(e) => handleSearch(e)}>
<div className="mx-2">
<label className="block text-white">Search Text:</label>
<input type="text" name="value" required></input>
</div>
</form>
</div>
</div>
);
};
Loading

0 comments on commit cee8258

Please sign in to comment.