fix: render Card as div to prevent button nesting hydration errors

This commit is contained in:
pompurin404 2025-02-04 15:08:06 +08:00
parent 32d91335cc
commit da3f3878f1
3 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,7 @@ const ProfileItem: React.FC<Props> = (props) => {
/>
)}
<Card
as="div"
fullWidth
isPressable
onPress={() => {

View File

@ -51,6 +51,7 @@ const ProxyItem: React.FC<Props> = (props) => {
return (
<Card
as="div"
onPress={() => onSelect(group.name, proxy.name)}
isPressable
fullWidth

View File

@ -329,6 +329,7 @@ const Proxies: React.FC = () => {
className={`w-full pt-2 ${index === groupCounts.length - 1 && !isOpen[index] ? 'pb-2' : ''} px-2`}
>
<Card
as="div"
isPressable
fullWidth
onPress={() => {