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
|
<Card
|
||||||
|
as="div"
|
||||||
fullWidth
|
fullWidth
|
||||||
isPressable
|
isPressable
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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={() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user