HideWallet

This function does not trigger any UI elements

Description

Function to hide the user wallet modal via code, without user input.

Details

Signature

HideWallet()

Arguments

None

Return Value

None

Example

import { useEffect } from 'react';
import { useMetafi } from '@metafi/metafi-react-package';

function newPage() {
    const { HideWallet } = useMetafi();
    
    useEffect(() => {
        // hide metafi wallet on page load
        HideWallet();
    }, [])
};

Last updated