Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ yarn dev

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result and to be able to use the app.

Lastly, connect your wallet (e.g ArgentX, ensure its in testnet mode if you want to use testnet)
Lastly, connect your wallet (e.g Ready, ensure its in testnet mode if you want to use testnet)

**NB:** You need to have mainnet token balance to pay for gas fees if you are using mainnet.

Expand Down
2 changes: 1 addition & 1 deletion components/UI/iconsComponents/icons/copyIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const CopyIcon: FunctionComponent<IconProps> = ({ color, width }) => {
<svg
width={width}
height={width}
viewBox="0 0 24 24"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
2 changes: 1 addition & 1 deletion components/UI/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,4 +446,4 @@ const Navbar: FunctionComponent = () => {
);
};

export default Navbar;
export default Navbar;
6 changes: 3 additions & 3 deletions components/UI/walletConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ const WalletConnect: FunctionComponent<WalletConnectProps> = ({
<p>
{needInstall(connector, isAvailable) ? "Install " : ""}
{isInArgentMobileAppBrowser()
? "Argent"
? "Ready"
: getConnectorName(connector.id)}
</p>
{connector.id === "argentWebWallet" ? (
<span className={styles.legend}>Powered by Argent</span>
<span className={styles.legend}>Powered by Ready</span>
) : null}
</div>
<div></div>
Expand All @@ -134,4 +134,4 @@ const WalletConnect: FunctionComponent<WalletConnectProps> = ({
);
};

export default WalletConnect;
export default WalletConnect;
21 changes: 21 additions & 0 deletions components/identities/availableIdentities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,27 @@ const AvailableIdentities = ({ tokenId }: { tokenId: string }) => {
selectedExpiredDomain,
]);

useEffect(() => {
const handleRouteChange = (url: string) => {
// If navigating to /identities (main page), reset the profile editing state
if (url === "/identities") {
setIsUpdatingPp(false)
}
}

router.events.on("routeChangeStart", handleRouteChange)

// Also check on mount if we're on the main identities page
if (router.asPath === "/identities") {
setIsUpdatingPp(false)
}

return () => {
router.events.off("routeChangeStart", handleRouteChange)
}
}, [router])


const connectWallet = async (connector: Connector) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down
4 changes: 2 additions & 2 deletions hooks/useHasClaimSolSubdomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export default function useHasClaimSolSubdomain(

useEffect(() => {
if (!address || claimedError || !claimedData) return;
let domains: string[] = [];
(claimedData as BigInt[]).map((claimAddr, index) => {
const domains: string[] = [];
(claimedData as bigint[]).map((claimAddr, index) => {
if (claimAddr.toString() === hexToDecimal(address)) {
domains.push(snsDomains[index]);
}
Expand Down
4 changes: 3 additions & 1 deletion hooks/useNotificationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export function useNotificationManager() {
console.log("Error while fetching transaction receipt", err);
updatedTransactions[index].data.txStatus = undefined;
},
success: () => {},
success: () => {
// Success callback - intentionally empty
},
});
setNotifications(updatedTransactions);
} else if (transactionReceipt.isSuccess()) {
Expand Down
Loading