generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(OCPADVISOR-143): Connect workloads to mocked API (#627)
* feat(OCPADVISOR-143): connect workloads mock api * refactor(OCPADVISOR-143): workloads table uses correct data
- Loading branch information
Showing
4 changed files
with
80 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
//Wrapper for API connection | ||
import React from 'react'; | ||
|
||
/* import { useGetClustersQuery } from '../../Services/SmartProxy'; */ | ||
import { useGetWorkloadsQuery } from '../../Services/SmartProxy'; | ||
import { WorkloadsListTable } from './WorkloadsListTable'; | ||
|
||
const WorkloadsListTableWrapper = () => { | ||
//Will be a workloads query when we connect it to the API | ||
/* const query = useGetClustersQuery(); */ | ||
const query = useGetWorkloadsQuery(); | ||
|
||
return <WorkloadsListTable /* query={query} */ />; | ||
return <WorkloadsListTable query={query} />; | ||
}; | ||
|
||
export default WorkloadsListTableWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters