File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ function Home(props) {
15
15
{ loading ? < div > Loading Data from backend</ div > : null }
16
16
{ error ? < div > Error loading data</ div > : null }
17
17
18
- { data && data . rates && data . rates . map ( ( r , i ) => (
18
+ { data && data . resources && data . resources . map ( ( r , i ) => (
19
19
< div key = { i } >
20
- { r . currency } : { r . rate } USD$
20
+ { r . title } : { r . description }
21
21
</ div >
22
22
) ) }
23
23
</ header >
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { gql } from 'apollo-boost';
3
3
4
4
export const EXCHANGE_RATES = gql `
5
5
{
6
- rates(currency: "USD") {
7
- currency
8
- rate
6
+ resources {
7
+ title
8
+ description
9
9
}
10
10
}
11
11
` ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { ApolloProvider } from "@apollo/react-hooks";
6
6
7
7
// TODO: Move uri value to config file
8
8
const client = new ApolloClient ( {
9
- uri : "https://48p1r2roz4.sse.codesandbox.io "
9
+ uri : "https://hardcore-haibt-da9a6b.netlify.com/.netlify/functions/graphql "
10
10
} ) ;
11
11
12
12
const Routes = ( ) => {
You can’t perform that action at this time.
0 commit comments