Skip to content

Commit

Permalink
Pass useNavigate hook to the marketplace module components
Browse files Browse the repository at this point in the history
  • Loading branch information
wpalani committed May 31, 2024
1 parent 7dea9cf commit 766ee40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/pages/marketplace/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -49,6 +49,7 @@ const MarketplacePage = () => {
useEffect,
useLocation,
useMatch,
useNavigate,
NewfoldRuntime,
};

Expand Down

0 comments on commit 766ee40

Please sign in to comment.