I integrated data into portfolio summary component on Dashboard page. We are getting data from already coded hooks and no new hook is done in this PR. For unrealized gains I am using hook that is merged couple of PRs ago and for total claimable rewards I am using hook from current UI (state folder). I decided to not code new hook since it is complex and that make PR harder for review. Also I implemented loading state that was missing in this component and implemented colour changing based on the fact is portfolio profitable or not in the very right moment. Also I upgraded hook for fetching profit and loss to return also current portfolio value.
I integrated data into portfolio summary component on Dashboard page. We are getting data from already coded hooks and no new hook is done in this PR. For unrealized gains I am using hook that is merged couple of PRs ago and for total claimable rewards I am using hook from current UI (state folder). I decided to not code new hook since it is complex and that make PR harder for review. Also I implemented loading state that was missing in this component and implemented colour changing based on the fact is portfolio profitable or not in the very right moment. Also I upgraded hook for fetching profit and loss to return also current portfolio value.