ok
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
// src/CafePage.js
|
||||
import React, { useState } from "react";
|
||||
import { useParams, useSearchParams, useNavigate } from "react-router-dom";
|
||||
@@ -11,9 +12,9 @@ import { updateLocalStorage } from "../helpers/localStorageHelpers";
|
||||
|
||||
function SearchResult({ user, shopItems, sendParam }) {
|
||||
const [searchParams] = useSearchParams();
|
||||
const { shopId, tableId } = useParams();
|
||||
const { shopId, tableCode } = useParams();
|
||||
const navigate = useNavigate();
|
||||
sendParam({ shopId, tableId });
|
||||
sendParam({ shopId, tableCode });
|
||||
|
||||
const [searchValue, setSearchValue] = useState(
|
||||
"dwadawa vvwqd21qb13 4kfawfdwa dhawldhawr dliawbdjawndlks"
|
||||
@@ -47,7 +48,7 @@ function SearchResult({ user, shopItems, sendParam }) {
|
||||
<div style={{ marginTop: "5px" }}></div>
|
||||
<SearchInput
|
||||
shopId={shopId}
|
||||
tableId={tableId}
|
||||
tableCode={tableCode}
|
||||
autofocus={true}
|
||||
onSearchChange={handleSearchChange}
|
||||
/>
|
||||
@@ -68,4 +69,4 @@ function SearchResult({ user, shopItems, sendParam }) {
|
||||
);
|
||||
}
|
||||
|
||||
export default SearchResult;
|
||||
export default SearchResult;
|
||||
Reference in New Issue
Block a user