Skip to content

Commit

Permalink
small clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Jan 9, 2025
1 parent 38127cb commit 60b52fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions explorer/src/components/Profile/ApiKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as Yup from 'yup'
import { CopyButton } from '../common/CopyButton'
import { WalletButton } from '../WalletButton'
import AccountListDropdown from '../WalletButton/AccountListDropdown'
import SmallProfileBox from './SmallProfileBox'
import { SmallProfileBox } from './SmallProfileBox'

export const ApiKeysPage: FC = () => {
const { actingAccount, subspaceAccount, injector } = useWallet()
Expand All @@ -23,7 +23,6 @@ export const ApiKeysPage: FC = () => {
// Function to create a new API key with error handling
const createApiKey = useCallback(
async (_values: typeof initialValues) => {
console.log('values', _values)
if (!injector || !actingAccount || !subspaceAccount) return

const values = {
Expand Down
2 changes: 1 addition & 1 deletion explorer/src/components/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { FC, useCallback, useEffect } from 'react'
import * as Yup from 'yup'
import { WalletButton } from '../WalletButton'
import AccountListDropdown from '../WalletButton/AccountListDropdown'
import SmallProfileBox from './SmallProfileBox'
import { SmallProfileBox } from './SmallProfileBox'

export const ProfilePage: FC = () => {
const { actingAccount, subspaceAccount, injector } = useWallet()
Expand Down
5 changes: 2 additions & 3 deletions explorer/src/components/Profile/SmallProfileBox.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { useSession } from 'next-auth/react'
import { FC, useCallback, useEffect } from 'react'
import { useProfileStates } from 'states/profile'

interface SmallProfileBoxProps {
showPrivateDetails?: boolean
}

const SmallProfileBox: FC<SmallProfileBoxProps> = ({ showPrivateDetails }) => {
export const SmallProfileBox: FC<SmallProfileBoxProps> = ({ showPrivateDetails }) => {
const { data: session } = useSession()

const profile = useProfileStates((state) => state.profile)
Expand Down Expand Up @@ -101,5 +102,3 @@ const SmallProfileBox: FC<SmallProfileBoxProps> = ({ showPrivateDetails }) => {
</div>
)
}

export default SmallProfileBox
2 changes: 1 addition & 1 deletion explorer/src/components/Profile/Wallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useSession } from 'next-auth/react'
import { FC, useEffect, useMemo } from 'react'
import { WalletButton } from '../WalletButton'
import AccountListDropdown from '../WalletButton/AccountListDropdown'
import SmallProfileBox from './SmallProfileBox'
import { SmallProfileBox } from './SmallProfileBox'

export const WalletsPage: FC = () => {
const { accounts, actingAccount, sessionSubspaceAccount } = useWallet()
Expand Down

0 comments on commit 60b52fa

Please sign in to comment.