From 766ee40d5db87d66663ab8f2b8518164f0e29196 Mon Sep 17 00:00:00 2001 From: wpalani Date: Thu, 30 May 2024 19:13:02 -0700 Subject: [PATCH] Pass `useNavigate` hook to the marketplace module components --- src/app/pages/marketplace/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/pages/marketplace/index.js b/src/app/pages/marketplace/index.js index 0e46b9e70..c0c6bac08 100644 --- a/src/app/pages/marketplace/index.js +++ b/src/app/pages/marketplace/index.js @@ -1,6 +1,6 @@ import apiFetch from '@wordpress/api-fetch'; import { useState, useEffect } from '@wordpress/element'; -import { useLocation, useMatch } from 'react-router-dom'; +import { useLocation, useMatch, useNavigate } from 'react-router-dom'; import classnames from 'classnames'; import { Container, Page } from '@newfold/ui-component-library'; import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime'; @@ -49,6 +49,7 @@ const MarketplacePage = () => { useEffect, useLocation, useMatch, + useNavigate, NewfoldRuntime, };