Skip to content

Commit

Permalink
fix lint error and add tags to swaps card
Browse files Browse the repository at this point in the history
  • Loading branch information
jmealy committed Jun 4, 2024
1 parent b1f486e commit 944d1ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/safe-apps/hooks/useNativeSwapsAppCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AppRoutes } from '@/config/routes'
import useChainId from '@/hooks/useChainId'
import useLocalStorage from '@/services/local-storage/useLocalStorage'
import type { SafeAppData } from '@safe-global/safe-gateway-typescript-sdk'
import { SafeAppAccessPolicyTypes } from '@safe-global/safe-gateway-typescript-sdk'
import { SafeAppAccessPolicyTypes, SafeAppFeatures } from '@safe-global/safe-gateway-typescript-sdk'
import { useHasFeature } from '@/hooks/useChains'
import { FEATURES } from '@/utils/chains'
import { NATIVE_SWAPS_APP_ID } from '@/features/swap/config/constants'
Expand All @@ -24,8 +24,8 @@ export function useNativeSwapsAppCard() {
name: 'Native swaps are here!',
description: 'Experience seamless trading with better decoding and security in native swaps.',
accessControl: { type: SafeAppAccessPolicyTypes.NoRestrictions },
tags: ['DeFi'],
features: [],
tags: ['DeFi', 'DEX'],
features: [SafeAppFeatures.BATCHED_TRANSACTIONS],
socialProfiles: [],
developerWebsite: '',
chainIds: [chainId],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/apps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SafeApps: NextPage = () => {
const router = useRouter()
const { swapsCardDetails } = useNativeSwapsAppCard()
const { remoteSafeApps, remoteSafeAppsLoading, pinnedSafeApps, pinnedSafeAppIds, togglePin } = useSafeApps()
const allApps = [swapsCardDetails, ...remoteSafeApps]
const allApps = useMemo(() => [swapsCardDetails, ...remoteSafeApps], [remoteSafeApps, swapsCardDetails])
const { filteredApps, query, setQuery, setSelectedCategories, setOptimizedWithBatchFilter, selectedCategories } =
useSafeAppsFilters(allApps)
const isFiltered = filteredApps.length !== allApps.length
Expand Down

0 comments on commit 944d1ec

Please sign in to comment.