Replace Useeffect For Api Calls With React Query React Query Setup

Replace Useeffect For Api Calls With React Query React Query Setup