Skip to content

Commit

Permalink
add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer-Sch committed Dec 8, 2023
1 parent ae05995 commit fda2592
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/nextjs/components/dash-wind/features/user/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import InputText from "../../components/Input/InputText";
import ErrorText from "../../components/Typography/ErrorText";
import { UpdateFormValues } from "../../types/FormTypes";
import LandingIntro from "./LandingIntro";
import { Address, createWalletClient, custom } from "viem";
import { polygonMumbai } from "viem/chains";
// import { Address, createWalletClient, custom } from "viem";
// import { polygonMumbai } from "viem/chains";
import { useContractRead } from "wagmi";

import {
/*setIsAdmin,*/
setIsConnected,
} from "~~/auth/authSlice";

import { web3auth } from "~~/auth/web3auth";
import { MyState, useMyDispatch, useMySelector } from "~~/components/dash-wind/app/store";

Expand Down Expand Up @@ -165,14 +165,12 @@ function Login() {

return;
}

}
} catch (error) {
console.error(error);
}
}


// async function determineIfAccountIsAdmin() {
// // set loading === true ???
// const userAddress = getAccounts();
Expand All @@ -181,7 +179,6 @@ function Login() {
// return;
// }


// if (!owner) {
// console.error("From determineIfAccountIsAdmin: ownerData from Payroll Contract is undefined");
// return;
Expand Down Expand Up @@ -215,7 +212,6 @@ function Login() {
return userAddress as Address;
}


const submitForm = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
setErrorMessage("");
Expand Down

0 comments on commit fda2592

Please sign in to comment.