Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
fix: render Card as div to prevent button nesting hydration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Feb 4, 2025
1 parent 32d9133 commit da3f387
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/src/components/profiles/profile-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ const ProfileItem: React.FC<Props> = (props) => {
/>
)}
<Card
as="div"
fullWidth
isPressable
onPress={() => {
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/components/proxies/proxy-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const ProxyItem: React.FC<Props> = (props) => {

return (
<Card
as="div"
onPress={() => onSelect(group.name, proxy.name)}
isPressable
fullWidth
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/pages/proxies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={() => {
Expand Down

0 comments on commit da3f387

Please sign in to comment.