Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
This pull request introduces several changes to the frontend codebase, including updates to components, hooks, and utility functions. The most significant changes include the addition of a new
PageHeader
component, updates to multiple components to support a new size type, and enhancements to theuseFractionToken
hook.New Component:
pkgs/frontend/app/components/PageHeader.tsx
: Added a newPageHeader
component to handle page titles and back navigation.Component Updates:
pkgs/frontend/app/components/common/CommonIcon.tsx
,pkgs/frontend/app/components/icon/RoleIcon.tsx
,pkgs/frontend/app/components/icon/UserIcon.tsx
: Updated thesize
prop to accept a template literal type for pixel values. [1] [2] [3]pkgs/frontend/app/components/common/CommonInput.tsx
: Added abackgroundColor
property to theCommonInput
component.Hook Enhancements:
pkgs/frontend/hooks/useENS.ts
: ModifieduseAddressesByNames
to accept anexactMatch
parameter.pkgs/frontend/hooks/useFractionToken.ts
: Refactored theuseFractionToken
hook to useuseActiveWallet
instead ofuseSmartAccountClient
, and added a newuseBalanceOfFractionToken
hook. [1] [2] [3] [4] [5] [6] [7] [8]Utility Functions:
pkgs/frontend/utils/ipfs.ts
: Updatedipfs2https
to handle undefinedipfsUri
.pkgs/frontend/utils/wallet.ts
: Added a new utility functionabbreviateAddress
to format wallet addresses.Other Changes:
pkgs/frontend/package.json
: Addedreact-hook-form
to dependencies.pkgs/frontend/app/routes/$treeId_.$hatId_.$address_.assistcredit.send.tsx
: Added a new route componentAssistCreditSend
for sending assist credits.pkgs/frontend/app/routes/api.namestone.$action.tsx
: Enhanced the API route to handle exact match parameter for name resolution.pkgs/frontend/app/routes/signup.tsx
: UpdateduseAddressesByNames
call to includeexactMatch
parameter.Fixes #201
Type of change
Please delete options that are not relevant.
Screenshots
If applicable, add screenshots to help explain your problem.