mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
fix: render Card as div to prevent button nesting hydration errors
This commit is contained in:
parent
32d91335cc
commit
da3f3878f1
@ -174,6 +174,7 @@ const ProfileItem: React.FC<Props> = (props) => {
|
||||
/>
|
||||
)}
|
||||
<Card
|
||||
as="div"
|
||||
fullWidth
|
||||
isPressable
|
||||
onPress={() => {
|
||||
|
||||
@ -51,6 +51,7 @@ const ProxyItem: React.FC<Props> = (props) => {
|
||||
|
||||
return (
|
||||
<Card
|
||||
as="div"
|
||||
onPress={() => onSelect(group.name, proxy.name)}
|
||||
isPressable
|
||||
fullWidth
|
||||
|
||||
@ -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={() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user