Skip to content

Commit 1b8e6dd

Browse files
committed
fix: adjusted collectible tile height,
feat: added coming soon page to explore within collection details
1 parent 901ebd4 commit 1b8e6dd

6 files changed

Lines changed: 20 additions & 6 deletions

File tree

packages/connect/src/styles.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,9 @@ export const styles = String.raw`
898898
.fill-background-raised {
899899
fill: var(--seq-color-background-raised);
900900
}
901+
.object-contain {
902+
object-fit: contain;
903+
}
901904
.object-cover {
902905
object-fit: cover;
903906
}

packages/wallet-widget/src/components/NavigationHeader/content/HomeHeader.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ export const HomeHeader = () => {
3636
setIsWalletViewOpen(true)
3737
}
3838

39+
const handleManageWallets = () => {
40+
setIsWalletViewOpen(false)
41+
setNavigation({
42+
location: 'settings-wallets'
43+
})
44+
}
45+
3946
const onClickSend = () => {
4047
setIsOperationMenuOpen(false)
4148
setNavigation({
@@ -179,7 +186,10 @@ export const HomeHeader = () => {
179186
Add Wallet
180187
</Text>
181188
</div>
182-
<div className="flex justify-center items-center bg-background-secondary rounded-full py-3 px-4 gap-2 w-full hover:opacity-80 cursor-pointer">
189+
<div
190+
className="flex justify-center items-center bg-background-secondary rounded-full py-3 px-4 gap-2 w-full hover:opacity-80 cursor-pointer"
191+
onClick={() => handleManageWallets()}
192+
>
183193
<SettingsIcon color="white" />
184194
<Text variant="normal" fontWeight="bold" color="primary">
185195
Manage

packages/wallet-widget/src/components/NoResults.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useMemo } from 'react'
55
import { MiniButton } from '../components/MiniButton.js'
66
import { useSettings } from '../hooks/useSettings.js'
77

8-
export const NoResults = ({ hasInstructions }: { hasInstructions?: boolean }) => {
8+
export const NoResults = ({ hasInstructions, customText }: { hasInstructions?: boolean; customText?: string }) => {
99
const { wallets } = useWallets()
1010
const { selectedWallets, allNetworks, selectedNetworks, setSelectedWallets, setSelectedNetworks } = useSettings()
1111

@@ -22,7 +22,7 @@ export const NoResults = ({ hasInstructions }: { hasInstructions?: boolean }) =>
2222
</div>
2323
<div className="flex flex-col items-center justify-center gap-2">
2424
<Text variant="medium" color="primary">
25-
No results found
25+
{customText || 'No results found'}
2626
</Text>
2727

2828
{hasInstructions && (

packages/wallet-widget/src/components/SearchLists/CollectiblesList/CollectibleTile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const CollectibleTile = ({ balance, onTokenClick }: CollectibleTileProps)
2727
const symbol = tokenMetadata?.[0]?.name
2828

2929
return (
30-
<div className="select-none cursor-pointer aspect-square relative" onClick={onClick}>
30+
<div className="select-none cursor-pointer relative" onClick={onClick}>
3131
<TokenTileImage src={imageUrl} symbol={symbol} />
3232
<NetworkImage
3333
chainId={balance.chainId}

packages/wallet-widget/src/components/TokenTileImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const TokenTileImage = ({ src, symbol }: TokenTileImageProps) => {
2323
return (
2424
<Card className="flex p-0 aspect-square justify-center items-center overflow-hidden rounded-lg bg-background-secondary">
2525
{src ? (
26-
<Image style={{ height: '100%', width: '100%', objectFit: 'cover' }} src={src} />
26+
<Image className="h-full" src={src} />
2727
) : (
2828
<Text variant="inherit" fontWeight="medium" color="muted" uppercase>
2929
{symbolLabel}

packages/wallet-widget/src/views/CollectionDetails/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { TokenBalance } from '@0xsequence/indexer'
55
import { useState } from 'react'
66

77
import type { TokenInfo } from '../../components/NavigationHeader/index.js'
8+
import { NoResults } from '../../components/NoResults.js'
89
import { CollectiblesTab } from '../../components/SearchLists/CollectiblesList/CollectiblesTab.js'
910
import { useNavigation, useSettings } from '../../hooks/index.js'
1011

@@ -79,7 +80,7 @@ export const CollectionDetails = ({ contractAddress, chainId }: TokenInfo) => {
7980
/>
8081
</TabsContent>
8182
<TabsContent value="explore">
82-
<div></div>
83+
<NoResults customText="Coming soon" />
8384
</TabsContent>
8485
</div>
8586
</TabsPrimitive.Root>

0 commit comments

Comments
 (0)