mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Show product tour only on home page (#19938)
* show product tour only on home page * updated variable name --------- Co-authored-by: David Walsh <davidwalsh83@gmail.com>
This commit is contained in:
parent
5736e670f7
commit
1ea934165b
@ -68,6 +68,7 @@ export const AppHeader = ({ location }) => {
|
||||
const menuRef = useRef(false);
|
||||
const origin = useSelector(getOriginOfCurrentTab);
|
||||
const history = useHistory();
|
||||
const isHomePage = location.pathname === DEFAULT_ROUTE;
|
||||
const isUnlocked = useSelector((state) => state.metamask.isUnlocked);
|
||||
const t = useI18nContext();
|
||||
const chainId = useSelector(getCurrentChainId);
|
||||
@ -241,6 +242,7 @@ export const AppHeader = ({ location }) => {
|
||||
)}
|
||||
{showProductTour &&
|
||||
popupStatus &&
|
||||
isHomePage &&
|
||||
multichainProductTourStep === 1 ? (
|
||||
<ProductTour
|
||||
className="multichain-app-header__product-tour"
|
||||
|
Loading…
Reference in New Issue
Block a user