Skip to content

Commit

Permalink
don't show network name on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharqiewicz committed Dec 23, 2024
1 parent d632cb4 commit 6735ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NetworkSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface NetworkButtonProps {

const NetworkButton = ({ selectedNetwork, isOpen, onClick, disabled }: NetworkButtonProps) => (
<motion.button
className={`flex items-center gap-2 px-4 py-2 rounded-full bg-base-100 ${
className={`flex items-center gap-2 px-2 sm:px-4 py-2 rounded-full bg-base-100 ${
disabled ? 'opacity-50 cursor-not-allowed' : ''
}`}
onClick={onClick}
Expand All @@ -32,7 +32,7 @@ const NetworkButton = ({ selectedNetwork, isOpen, onClick, disabled }: NetworkBu
disabled={disabled}
>
<NetworkIcon chainId={selectedNetwork} className={`w-5 h-5 ${disabled ? 'opacity-50' : ''}`} />
<span className={disabled ? 'opacity-50' : ''}>{networkToDisplayName(selectedNetwork)}</span>
<span className={`hidden sm:block ${disabled ? 'opacity-50' : ''}`}>{networkToDisplayName(selectedNetwork)}</span>
<motion.div
animate={{ rotate: isOpen ? 180 : 0 }}
transition={{ duration: 0.2 }}
Expand Down

0 comments on commit 6735ec3

Please sign in to comment.