mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +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 menuRef = useRef(false);
|
||||||
const origin = useSelector(getOriginOfCurrentTab);
|
const origin = useSelector(getOriginOfCurrentTab);
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
const isHomePage = location.pathname === DEFAULT_ROUTE;
|
||||||
const isUnlocked = useSelector((state) => state.metamask.isUnlocked);
|
const isUnlocked = useSelector((state) => state.metamask.isUnlocked);
|
||||||
const t = useI18nContext();
|
const t = useI18nContext();
|
||||||
const chainId = useSelector(getCurrentChainId);
|
const chainId = useSelector(getCurrentChainId);
|
||||||
@ -241,6 +242,7 @@ export const AppHeader = ({ location }) => {
|
|||||||
)}
|
)}
|
||||||
{showProductTour &&
|
{showProductTour &&
|
||||||
popupStatus &&
|
popupStatus &&
|
||||||
|
isHomePage &&
|
||||||
multichainProductTourStep === 1 ? (
|
multichainProductTourStep === 1 ? (
|
||||||
<ProductTour
|
<ProductTour
|
||||||
className="multichain-app-header__product-tour"
|
className="multichain-app-header__product-tour"
|
||||||
|
Loading…
Reference in New Issue
Block a user