Skip to content

Commit

Permalink
Merge pull request #1826 from Web3Auth/feat/plugin-refactor
Browse files Browse the repository at this point in the history
Make plugin work with sfa too
  • Loading branch information
chaitanyapotti authored May 20, 2024
2 parents d9edd2d + 60dfcd4 commit 65b269d
Show file tree
Hide file tree
Showing 14 changed files with 297 additions and 303 deletions.
124 changes: 61 additions & 63 deletions demo/react-app-no-modal/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 29 additions & 31 deletions demo/react-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function App() {
const savedNetwork = window.localStorage.getItem(STORAGE_KEY.WEB3AUTH_NETWORK) as WEB3AUTH_NETWORK_TYPE;
const savedChain = window.localStorage.getItem(STORAGE_KEY.BLOCKCHAIN) as CHAIN_CONFIG_TYPE;
const [web3AuthNetwork, setWeb3AuthNetwork] = useState<WEB3AUTH_NETWORK_TYPE>(savedNetwork || "sapphire_mainnet");
const [chain, setChain] = useState<CHAIN_CONFIG_TYPE>(savedChain || "polygon-mumbai");
const [chain, setChain] = useState<CHAIN_CONFIG_TYPE>(savedChain || "polygon-amoy");

const networkChangeHandler = (network: WEB3AUTH_NETWORK_TYPE) => {
window.localStorage.setItem(STORAGE_KEY.WEB3AUTH_NETWORK, network);
Expand Down
Loading

0 comments on commit 65b269d

Please sign in to comment.