blockful-io / external-resolver-dapp

https://external-resolver-dapp.vercel.app
2 stars 2 forks source link

refactor: Extract and Reuse Avatar Default Customizations as Shared Constants #159

Open eduramme opened 2 months ago

eduramme commented 2 months ago

Refactor Request

Description

The current implementation includes hardcoded default customizations for Avatars, such as the name and variant. To improve maintainability and consistency, these default customizations should be extracted into a shared constant and reused across the project.

Requirements

Additional Information

https://github.com/blockful-io/external-resolver-dapp/pull/152: Image

Possible Solution

Create a shared constants file that includes the default Avatar customizations, such as name and variant. Update all instances in the code where these values are currently hardcoded to reference the new constants.

FrancoAguzzi commented 2 months ago

Nice @eduramme , that is pretty much it

I'd yet suggest to create a const with the multiple Avatar sizes mapping , wdyt?