This commit is contained in:
nospeedlimitindonesia
2024-07-30 06:40:37 +00:00
parent 1bef19f624
commit ab3732fe9d
7 changed files with 61 additions and 26 deletions

View File

@@ -9,8 +9,9 @@ import Header from "../components/Header";
function SearchResult({ user, shopItems, sendParam }) {
const [searchParams] = useSearchParams();
const { shopId } = useParams();
sendParam(shopId);
const { shopId, tableId } = useParams();
sendParam({ shopId, tableId });
const [searchValue, setSearchValue] = useState(
"dwadawa vvwqd21qb13 4kfawfdwa dhawldhawr dliawbdjawndlks",
);
@@ -39,7 +40,12 @@ function SearchResult({ user, shopItems, sendParam }) {
return (
<div className="App">
<header className="App-header">
<Header HeaderText={"Search"} shopId={shopId} user={user} />
<Header
HeaderText={"Search"}
shopId={shopId}
tableId={tableId}
user={user}
/>
<div style={{ marginTop: "5px" }}></div>
<SearchInput
shopId={shopId}