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 <Card
as="div"
fullWidth fullWidth
isPressable isPressable
onPress={() => { onPress={() => {

View File

@ -51,6 +51,7 @@ const ProxyItem: React.FC<Props> = (props) => {
return ( return (
<Card <Card
as="div"
onPress={() => onSelect(group.name, proxy.name)} onPress={() => onSelect(group.name, proxy.name)}
isPressable isPressable
fullWidth 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`} className={`w-full pt-2 ${index === groupCounts.length - 1 && !isOpen[index] ? 'pb-2' : ''} px-2`}
> >
<Card <Card
as="div"
isPressable isPressable
fullWidth fullWidth
onPress={() => { onPress={() => {