Conversation
|
@heronlancellot is attempting to deploy a commit to the Blockful Team on Vercel. A member of the Team first needs to authorize it. |
components/01-atoms/ENSAvatar.tsx
Outdated
| import { EthereumAddress } from "@/lib/shared/types"; | ||
| import cc from "classcat"; | ||
| import { useEffect, useState } from "react"; | ||
| // /* eslint-disable react-hooks/exhaustive-deps */ |
There was a problem hiding this comment.
Whenever commenting out features from the project, can you please add a documentation at the top of the comments explaining this feature is out for a while?
There was a problem hiding this comment.
- I'd rather using this comment methodology /** */
components/01-atoms/SearchBar.tsx
Outdated
| import { useContext, useEffect } from "react"; | ||
| import { ENS } from "web3-eth-ens"; | ||
| import Web3 from "web3"; | ||
| // import { ENS } from "web3-eth-ens"; |
There was a problem hiding this comment.
Same thing around comment methodology in here
| const { primaryName } = useEnsData({ | ||
| ensAddress: authenticatedUserAddress, | ||
| }); | ||
| // const { primaryName } = useEnsData({ |
| }); | ||
| // const { primaryName } = useEnsData({ | ||
| // ensAddress: authenticatedUserAddress, | ||
| // }); |
There was a problem hiding this comment.
Please also add docs above the comments (one per file is enough) saying why this feature is out for now
There was a problem hiding this comment.
For each file, please
| searchedENSName | ||
| ? `${searchedENSName} offers` | ||
| : validatedAddressToSwap | ||
| // searchedENSName |
There was a problem hiding this comment.
Please use the other comment syntax
| className="rounded-[10px] flex items-center justify-center w-full h-full" | ||
| > | ||
| <ENSAvatar avatarENSAddress={authenticatedUserAddress} /> | ||
| {/* <ENSAvatar avatarENSAddress={authenticatedUserAddress} /> */} |
There was a problem hiding this comment.
Here as well, adding a comment on why this is out
| <div className="flex gap-2"> | ||
| <div> | ||
| {address && ( | ||
| {/* {address && ( |
| export const SwapSection = () => { | ||
| return ( | ||
| <div className="max-w-[1280px] xl:max-h-[720px] w-full flex xl:flex-row flex-col lg:justify-center"> | ||
| <div className="max-w-[1280px] xl:max-h-[720px] w-full flex xl:flex-row flex-col lg:justify-center xl:h-full"> |
There was a problem hiding this comment.
This is already in another PR, shall update with merge
lib/client/hooks/useENSData.tsx
Outdated
| SUCCESS, | ||
| ERROR, | ||
| } | ||
| // export enum ENSAvatarQueryStatus { |
There was a problem hiding this comment.
Please refer to the above comments and apply the mentioned rules here!
components/01-atoms/index.ts
Outdated
| export * from "./ConnectWallet"; | ||
| export * from "./DisconnectWallet"; | ||
| export * from "./ENSAvatar"; | ||
| // export * from "./ENSAvatar"; |
There was a problem hiding this comment.
Please add a comment in here as well
lib/client/hooks/useENSData.tsx
Outdated
| @@ -1,3 +1,23 @@ | |||
| /** | |||
| * @deprecated This hook is deprecated because the searched ENS address | |||
| * sometimes returns incorrect results, which negatively impacts the user flow | |||
There was a problem hiding this comment.
Please replicate my suggestions above to the exact same text
lib/client/hooks/useENSData.tsx
Outdated
| * `ensAddress` changes. It updates the state variables `primaryName` and `avatarQueryStatus` | ||
| * based on the fetched data or any errors encountered during the fetch process. | ||
| * | ||
| * @param {Props} props - The properties object. |
There was a problem hiding this comment.
Please do not type the whole props object but each single prop
lib/client/hooks/useENSData.tsx
Outdated
| * based on the fetched data or any errors encountered during the fetch process. | ||
| * | ||
| * @param {Props} props - The properties object. | ||
| * @param {EthereumAddress | null} props.ensAddress - The ENS address to fetch the data for. |
There was a problem hiding this comment.
Please do not mention props.
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
| <div className="flex flex-col"> | ||
| <div className="flex items-center justify-start gap-2"> | ||
| {primaryName && ( | ||
| {/* {primaryName && ( |
There was a problem hiding this comment.
This comment section can reproduce the method of commenting deprecated feature that the other sections received! Please go ahead and do so 🧑🏼💻👊🏼🧑🏼💻
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
| const { primaryName } = useEnsData({ | ||
| ensAddress: authenticatedUserAddress, | ||
| }); |
There was a problem hiding this comment.
This comment is missing documentation on why it is commented out
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Co-authored-by: caco.eth <49823133+FrancoAguzzi@users.noreply.github.com>
Closes #320