Skip to content

fix: token form stories #19753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { AllNetworksOption } from '../../../options/network-filter-options'
import { BraveWallet } from '../../../constants/types'

// Components
import { SelectNetwork, CreateNetworkIcon } from '../../shared'
import { CreateNetworkIcon } from '../../shared/create-network-icon/index'
import { SelectNetwork } from '../../shared/select-network/index'

// Styled Components
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at https://mozilla.org/MPL/2.0/.
import * as React from 'react'
import { skipToken } from '@reduxjs/toolkit/query'

// Styled Components
import {
Expand All @@ -21,26 +22,23 @@ import {
import { URLText } from '../shared-panel-styles'

// Components
import {
withPlaceholderIcon,
Tooltip,
CreateSiteOrigin,
LoadingSkeleton
} from '../../shared'
import { NavButton } from '..'
import withPlaceholderIcon from '../../shared/create-placeholder-icon/index'
import { Tooltip } from '../../shared/tooltip/index'
import CreateSiteOrigin from '../../shared/create-site-origin/index'
import LoadingSkeleton from '../../shared/loading-skeleton/index'
import { NavButton } from '../buttons/nav-button/index'

// Utils
import { reduceAddress } from '../../../utils/reduce-address'
import { getLocale } from '../../../../common/locale'

// Hooks
import { useExplorer } from '../../../common/hooks'
import useExplorer from '../../../common/hooks/explorer'
import {
useApproveOrDeclineTokenSuggestionMutation,
useGetNetworkQuery,
useGetPendingTokenSuggestionRequestsQuery
} from '../../../common/slices/api.slice'
import { skipToken } from '@reduxjs/toolkit/dist/query'

const AssetIconWithPlaceholder = withPlaceholderIcon(AssetIcon, {
size: 'big',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
} from '../../../common/slices/api.slice.extra'

// components
import { SelectNetworkDropdown } from '../../desktop'
import { SelectNetworkDropdown } from '../../desktop/select-network-dropdown/index'
import Tooltip from '../tooltip'
import { FormErrorsList } from './form-errors-list'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { BraveWallet } from '../../../constants/types'
import { AllNetworksOption } from '../../../options/network-filter-options'

// Components
import { CreateNetworkIcon } from '../'
import { CreateNetworkIcon } from '../create-network-icon/index'

// Styled Components
import {
Expand All @@ -25,7 +25,7 @@ export interface Props {
onSelectCustomNetwork: (network: BraveWallet.NetworkInfo) => void
}

function SelectNetworkItem (props: Props) {
export function SelectNetworkItem (props: Props) {
const { network, selectedNetwork, onSelectCustomNetwork } = props

// methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { BraveWallet } from '../../../constants/types'
import { useGetVisibleNetworksQuery } from '../../../common/slices/api.slice'

// components
import SelectNetworkItem from '../select-network-item'
import { SelectNetworkItem } from '../select-network-item/index'

interface Props {
onSelectCustomNetwork: (network: BraveWallet.NetworkInfo) => void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,9 @@ _ConnectHardwareWallet.story = {
export const _AddSuggestedToken = () => {
return (
<StyledExtensionWrapper>
<AddSuggestedTokenPanel />
<WalletPanelStory>
<AddSuggestedTokenPanel />
</WalletPanelStory>
</StyledExtensionWrapper>
)
}
Expand Down