Skip to content

Commit d580181

Browse files
minor ui changes (#4)
1 parent 5141db8 commit d580181

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

components/Donate.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface DonateProps {
3131
}
3232

3333
export function Donate({ selectedAddress }: DonateProps) {
34-
const { client, accounts, contextAccounts, walletConnected, setIsSearching } =
34+
const { client, accounts, contextAccounts, walletConnected } =
3535
useUpProvider();
3636
const [amount, setAmount] = useState<number>(minAmount);
3737
const [error, setError] = useState('');
@@ -75,16 +75,6 @@ export function Donate({ selectedAddress }: DonateProps) {
7575
<div className="rounded-xl">
7676
<div className="flex flex-row items-center justify-center gap-2">
7777
<LuksoProfile address={recipientAddress} />
78-
<lukso-tooltip variant="dark" trigger="mouseenter" text="Change Profile" hide-on-click="true" show-delay="300" hide-delay="300">
79-
<lukso-button
80-
onClick={() => setIsSearching(true)}
81-
variant="secondary"
82-
size="small"
83-
isIcon={true}
84-
>
85-
<lukso-icon name="profile-recovery" size="small" color="neutral-20"></lukso-icon>
86-
</lukso-button>
87-
</lukso-tooltip>
8878
</div>
8979
</div>
9080

components/LuksoProfile.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import { useEffect, useState } from 'react';
1919
import { ERC725 } from '@erc725/erc725.js';
2020
import erc725schema from '@erc725/erc725.js/schemas/LSP3ProfileMetadata.json';
21+
import { useUpProvider } from './upProvider';
2122

2223
// Constants for the IPFS gateway and RPC endpoint for the LUKSO testnet
2324
const IPFS_GATEWAY = 'https://api.universalprofile.cloud/ipfs/';
@@ -28,6 +29,7 @@ interface LuksoProfileProps {
2829
}
2930

3031
export function LuksoProfile({ address }: LuksoProfileProps) {
32+
const { setIsSearching } = useUpProvider();
3133
const [profileData, setProfileData] = useState<{
3234
imgUrl: string;
3335
fullName: string;
@@ -93,7 +95,7 @@ export function LuksoProfile({ address }: LuksoProfileProps) {
9395
profile-url={profileData.imgUrl}
9496
shadow="small"
9597
border-radius="small"
96-
width={280}
98+
width={300}
9799
height={200}
98100
>
99101
<div slot="content" className="flex flex-col items-center">
@@ -104,9 +106,18 @@ export function LuksoProfile({ address }: LuksoProfileProps) {
104106
size="large"
105107
max-width="200"
106108
prefix="@"
107-
class="mb-4"
108109
></lukso-username>
109110
)}
111+
<lukso-tooltip variant="dark" trigger="mouseenter" text="Change Profile" hide-on-click="true" show-delay="300" hide-delay="300" class="pl-60 pb-2">
112+
<lukso-button
113+
onClick={() => setIsSearching(true)}
114+
variant="secondary"
115+
size="small"
116+
isIcon={true}
117+
>
118+
<lukso-icon name="profile-recovery" size="small" color="neutral-20"></lukso-icon>
119+
</lukso-button>
120+
</lukso-tooltip>
110121
</div>
111122
</lukso-card>
112123
);

components/ProfileSearch.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,17 @@ export function ProfileSearch({ onSelectAddress }: SearchProps) {
149149
);
150150

151151
return (
152-
<div className="w-full md:p-8 backdrop-blur-md rounded-2xl shadow-sm">
152+
<div className="w-full md:p-8 backdrop-blur-md rounded-2xl">
153153
{/* Header Section */}
154154
<div className="flex flex-col space-y-2">
155155
<div className="flex justify-between items-center">
156-
<h2 className="md:text-xl font-bold text-gray-900">
156+
<h2 className="md:text-l font-bold text-gray-900">
157157
Search Profile
158158
</h2>
159159
<lukso-button
160160
onClick={() => setIsSearching(false)}
161161
variant="primary"
162-
size="medium"
162+
size="small"
163163
isFullWidth={true}
164164
>
165165
Back

0 commit comments

Comments
 (0)