Skip to content

Commit

Permalink
Merge pull request #26 from 0xsequence/fix-tsc-errors
Browse files Browse the repository at this point in the history
Fix TSC errors
  • Loading branch information
patrislav authored Jul 16, 2024
2 parents f41a2b0 + e6c038d commit 1ab6a10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function App() {
setFetchWalletAddressError(e.message)
})

sequence.listAccounts().then((response: any) => {
sequence.listAccounts().then((response) => {
if (response.currentAccountId) {
setCurrentAccount(response.accounts.find(account => account.id === response.currentAccountId))
}
Expand Down
9 changes: 3 additions & 6 deletions src/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Text, TextInput, Button, Spinner, useTheme, Checkbox, Divider, Modal } from '@0xsequence/design-system'
import { Box, Text, TextInput, Button, Spinner, Checkbox, Divider, Modal } from '@0xsequence/design-system'
import { SetStateAction, useEffect, useRef, useState } from 'react'
import { CredentialResponse, GoogleLogin, useGoogleLogin } from '@react-oauth/google'
import AppleSignin from 'react-apple-signin-auth'
Expand All @@ -15,9 +15,6 @@ import { useSessionHash } from './utils/useSessionHash.ts'
import { useEmailAuthV2 } from './utils/useEmailAuthV2.ts'
import {StytchLogin} from "./components/StytchLogin.tsx";

const urlParams = new URLSearchParams(window.location.search)
const targetEnv = urlParams.get('env') ?? 'prod'

function Login() {
const { sessionHash } = useSessionHash()
const [email, setEmail] = useState('')
Expand All @@ -39,13 +36,13 @@ function Login() {
const handleGooglePlayfabLogin = useGoogleLogin({
flow: 'implicit',
onSuccess: tokenResponse => {
;(window as any).PlayFabClientSDK.LoginWithGoogleAccount(
(window as any).PlayFabClientSDK.LoginWithGoogleAccount(
{
AccessToken: tokenResponse.access_token, // This access token is generated after a user has signed into Google
CreateAccount: true,
TitleId: import.meta.env.VITE_PLAYFAB_TITLE_ID,
},
async (response, error) => {
async (response?: { data: { SessionTicket: string } }, error?: Error) => {
if (response) {
try {
const seqRes = await sequence.signIn(
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/EmailConflictWarningView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Button, ChevronRightIcon, Text } from '@0xsequence/design-system'
import { Box, Button, Text } from '@0xsequence/design-system'

interface PaneProps {
onCancel: () => void
Expand Down

0 comments on commit 1ab6a10

Please sign in to comment.