Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/search bar design and search by typing #164

Conversation

gabrieljolvm
Copy link
Contributor

#closes #72

  • Remove Buttom from SearchBar
  • Add onChange function in Input
  • Add Delay to request new addresses
  • Refactor the design from Search Bar.

heronlancellot and others added 30 commits December 12, 2023 10:36
- add onest font in all {content]
- add onest font
- add dark/light mode
- change text-fonts and color switching light/dark
- add new layout like figma
- refactor all imports  & remove unused
- add header & icons changing with theme
- add prettier configuration
- format code with prettier
add empty cards in offer-sumary & nfts-list
- add initial structure of offers filter
- integrate the smart-contract - create-swap
- add abi
- refactor EmptyNftsCards
- add new types to use swap
- add expire-date using timestamp & selectedDate
- refactor frontend v1
- remove chains ids
- adjust the select time
- add create swap  n-n
- adjust design
- add MockERC721 && MockERC20 ABI
- add contract address
- add approveSwap encodedFunctionData
- update ConfirmSwapModal
- add getApproved function to know the approved selected tokens
- add validations to approved tokens
- refactor variable names
- add CONTRIBUTING.MD
- add CODE_OF_CONDUCT.md
- add SECURITY.md
Copy link

vercel bot commented Feb 26, 2024

@gabrieljolvm is attempting to deploy a commit to the Shared Blockful's projects Team on Vercel.

A member of the Team first needs to authorize it.

);
};
fetchApprove();
}, [nftAuthUser, allSelectedNftsApproved]);

Check warning

Code scanning / ESLint

verifies the list of dependencies for Hooks like useEffect and similar Warning

React Hook useEffect has missing dependencies: 'setAllSelectedNftsAreApproved' and 'setAuthedUserNftsApprovalStatus'. Either include them or remove the dependency array.
}

export const SwapContext = React.createContext<SwapContextProps>({
inputAddress: "",
validatedAddressToSwap: "",
validateAddressToSwap: (
_authedUser: EthereumAddress,
_inputEnsAddress: string | null | undefined
_inputEnsAddress: string | null | undefined,

Check failure

Code scanning / ESLint

Disallow unused variables Error

'_inputEnsAddress' is defined but never used.
@@ -41,6 +56,14 @@
nftInputUser: [],
destinyChain: SupportedNetworks.SEPOLIA,
setDestinyChain: () => {},
setTimeDate: () => {},

Check failure

Code scanning / ESLint

Disallow empty functions Error

Unexpected empty method 'setTimeDate'.
@@ -41,6 +56,14 @@
nftInputUser: [],
destinyChain: SupportedNetworks.SEPOLIA,
setDestinyChain: () => {},
setTimeDate: () => {},
timeDate: BigInt(1),
setAllSelectedNftsAreApproved: () => {},

Check failure

Code scanning / ESLint

Disallow empty functions Error

Unexpected empty method 'setAllSelectedNftsAreApproved'.
timeDate: BigInt(1),
setAllSelectedNftsAreApproved: () => {},
allSelectedNftsApproved: false,
setAuthedUserNftsApprovalStatus: () => {},

Check failure

Code scanning / ESLint

Disallow empty functions Error

Unexpected empty method 'setAuthedUserNftsApprovalStatus'.
if (currentSwapModalStep === SwapModalSteps.CREATING_SWAP) {
handleSwap();
}
}, [currentSwapModalStep]);

Check warning

Code scanning / ESLint

verifies the list of dependencies for Hooks like useEffect and similar Warning

React Hook useEffect has a missing dependency: 'handleSwap'. Either include it or remove the dependency array.
if (!open) {
updateSwapStep(ButtonClickPossibilities.PREVIOUS_STEP);
}
}, [open]);

Check warning

Code scanning / ESLint

verifies the list of dependencies for Hooks like useEffect and similar Warning

React Hook useEffect has a missing dependency: 'updateSwapStep'. Either include it or remove the dependency array.
);
};
fetchApprove();
}, [nftAuthUser, allSelectedNftsApproved]);

Check warning

Code scanning / ESLint

verifies the list of dependencies for Hooks like useEffect and similar Warning

React Hook useEffect has missing dependencies: 'setAllSelectedNftsAreApproved', 'setAuthedUserNftsApprovalStatus', and 'updateSwapStep'. Either include them or remove the dependency array.
@@ -0,0 +1,46 @@
/* eslint-disable @typescript-eslint/no-var-requires */
require("dotenv").config();

Check failure

Code scanning / ESLint

Disallow `require` statements except in import statements Error

Require statement not part of import statement.
}, 2000);
return () => clearTimeout(requestDelay);

}, [inputAddress]);

Check warning

Code scanning / ESLint

verifies the list of dependencies for Hooks like useEffect and similar Warning

React Hook useEffect has missing dependencies: 'getUserAddress' and 'setUserJustValidatedInput'. Either include them or remove the dependency array.
@heronlancellot
Copy link
Member

#closes #72

  • Remove Buttom from SearchBar
  • Add onChange function in Input
  • Add Delay to request new addresses
  • Refactor the design from Search Bar.

hey @gabrieljolvm ! Thanks for your contribution! :)
The actual Pull Request is going to main branch and should be to develop
I will ask you to redo the pr and change the branch to merge into blockful-io:develop.
So we can review it and check so 🚀
I will close this one and wait the new one ! 🥇 🫡
Like the PR #165 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: search-bar design and search by typing
9 participants