Skip to content

Commit

Permalink
ignore Relay files
Browse files Browse the repository at this point in the history
try to run relay on build step

add graphql-cli dependency

make some changes to fix NextJS error (vercel/next.js#8617)

prevent default on link

trigger error on server

trigger error on server

trigger error on server

trigger error on server

trigger error on server

trigger error on server
  • Loading branch information
thibaultboursier committed Dec 1, 2019
1 parent c4d997b commit ba30694
Show file tree
Hide file tree
Showing 13 changed files with 3,213 additions and 363 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ dist
.dynamodb/

# TernJS port file
.tern-port
.tern-port
13 changes: 8 additions & 5 deletions components/Item.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import React, { useCallback, useState, useContext } from "react";
import { ListGroupItem } from "reactstrap";
import ItemQuery from "../queries/ItemQuery";
import ItemQuery, { ItemQueryRenderer } from "../queries/itemQuery";

const Item = ({ item, isSelected, onClick }) => (
<ListGroupItem
action
active={isSelected}
tag="a"
href="#"
onClick={() => onClick(item.id)}
onClick={event => {
event.preventDefault();
onClick(item.id);
}}
tag="a"
>
{item.name}
{isSelected && (
<ItemQuery gtfsId={item.gtfsId}>
<ItemQueryRenderer gtfsId={item.gtfsId}>
{({ error, props }) => {
if (error) {
return <div>An error occured: "{error.message}"</div>;
Expand All @@ -26,7 +29,7 @@ const Item = ({ item, isSelected, onClick }) => (
<div>&nbsp;&nbsp;&nbsp;# Timezone: {props.agency.timezone}</div>
);
}}
</ItemQuery>
</ItemQueryRenderer>
)}
</ListGroupItem>
);
Expand Down
60 changes: 0 additions & 60 deletions components/__generated__/Item_item.graphql.js

This file was deleted.

53 changes: 0 additions & 53 deletions components/__generated__/Items_items.graphql.js

This file was deleted.

Loading

1 comment on commit ba30694

@vercel
Copy link

@vercel vercel bot commented on ba30694 Dec 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.