ok
This commit is contained in:
@@ -75,6 +75,7 @@ function App() {
|
||||
|
||||
useEffect(() => {
|
||||
async function fetchData() {
|
||||
console.log("gettingItems");
|
||||
try {
|
||||
const { response, data } = await getItemTypesWithItems(shopId);
|
||||
console.log(data);
|
||||
@@ -234,6 +235,7 @@ function App() {
|
||||
element={
|
||||
<>
|
||||
<SearchResult
|
||||
sendParam={handleSetParam}
|
||||
user={user} // if logged
|
||||
shopItems={shopItems}
|
||||
guestSides={guestSides} // if being clerk
|
||||
|
||||
@@ -7,9 +7,10 @@ import SearchInput from "../components/SearchInput";
|
||||
import ItemLister from "../components/ItemLister";
|
||||
import Header from "../components/Header";
|
||||
|
||||
function SearchResult({ user, shopItems }) {
|
||||
function SearchResult({ user, shopItems, sendParam }) {
|
||||
const [searchParams] = useSearchParams();
|
||||
const { shopId } = useParams();
|
||||
sendParam(shopId);
|
||||
const [searchValue, setSearchValue] = useState(
|
||||
"dwadawa vvwqd21qb13 4kfawfdwa dhawldhawr dliawbdjawndlks",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user