()
| 47 | }); |
| 48 | |
| 49 | const App: React.FC = () => { |
| 50 | const {loading, error, data} = useQuery(gql` |
| 51 | { |
| 52 | shows { |
| 53 | title |
| 54 | } |
| 55 | }`); |
| 56 | |
| 57 | return loading ? |
| 58 | <div>Loading...</div> |
| 59 | : error ? <div>{error}</div> |
| 60 | : <div> |
| 61 | <h1>Movies</h1> |
| 62 | <table> |
| 63 | <tr> |
| 64 | <th>Title</th> |
| 65 | </tr> |
| 66 | {data.shows.map((show: Show) => { |
| 67 | return <tr> |
| 68 | <td>{show.title}</td> |
| 69 | </tr> |
| 70 | })} |
| 71 | </table> |
| 72 | |
| 73 | <h1>Subscriptions</h1> |
| 74 | <SubscriptionPanel/> |
| 75 | </div> |
| 76 | } |
| 77 | |
| 78 | type Show = { |
| 79 | title: String |
nothing calls this directly
no outgoing calls
no test coverage detected