Skip to content

Commit

Permalink
fix: gnosis account selector empty (#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored Jun 14, 2024
1 parent f9b7dfa commit be30e41
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ui/assets/empty-cc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/ui/component/AccountSelectDrawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import './style.less';
import { CommonSignal } from '../ConnectStatus/CommonSignal';
import { useWalletConnectIcon } from '../WalletConnect/useWalletConnectIcon';
import { findChain } from '@/utils/chain';
import { ReactComponent as RcIconEmpty } from '@/ui/assets/empty-cc.svg';

interface AccountSelectDrawerProps {
onChange(account: Account): void;
Expand Down Expand Up @@ -190,6 +191,16 @@ const AccountSelectDrawer = ({
}
/>
))}
{!accounts?.length ? (
<div className="flex flex-col items-center justify-center h-full text-r-neutral-foot">
<div className="w-[32px] h-[32px] mb-[16px]">
<RcIconEmpty />
</div>
<div className="text-[14px] leading-[24px]">
No available address
</div>
</div>
) : null}
</div>
<div className="footer">
<Button type="primary" onClick={onCancel}>
Expand Down

0 comments on commit be30e41

Please sign in to comment.