Open adadychanka opened 1 day ago
The field has been added and deployed and is ready to consume.
@min-in-zon
Use the following installation guide - https://lucide.dev/guide/packages/lucide-react#installation
Then use the following guide to add DynamicIcon
component to consume icons from the backend - https://lucide.dev/guide/packages/lucide-react#with-dynamic-imports
Add an icon field to the
GuideCategory
model on the BE side. We will store the icon's name in that field.Here is an example of the object for the guide category from BE.
On the client side, this icon name will be consumed and used with a generic icon component built on top of Lucide lib Here is the guide how to create generic component for dynamic icons - https://lucide.dev/guide/packages/lucide-react#with-dynamic-imports