fix bug with incorrect page

This commit is contained in:
jhl-alameda 2021-03-16 09:06:20 +08:00
parent bd3e841aba
commit 3cdab1cc42
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import { createContext, useContext, useState } from 'react';
const PageContext = createContext('wallet');
const PageContext = createContext(['wallet', () => {}]);
export const PageProvider = ({ children }) => {
const [page, setPage] = useState('wallet');