Display Item Sprite on Inventory UI

I have an inventory system where when the item is picked up, it’s destroyed, and when it’s dropped, it spawns it’s prefab. I would like to display the sprite (saved inside the prefab) of the item on a UI Image, but i don’t know how to go about it

public void AddItem(string item)
	if (sylladex [0] == null) {
		sylladex [0] = item;
		//Update UI somehow
		slot [0].overrideSprite = slot [0].GetComponent<ItemManager> ().sprite;


this is the code i have for now, it doesn’t really work, naturally

maybe this can helps Unity 2D Game Basics - Adding an Item to Inventory - YouTube , isnt my.