Skip to content

Instantly share code, notes, and snippets.

@brennancheung
Created November 28, 2018 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennancheung/5f31cba90775034aa0561b023837ad75 to your computer and use it in GitHub Desktop.
Save brennancheung/5f31cba90775034aa0561b023837ad75 to your computer and use it in GitHub Desktop.
const GoalsForToday = () => (
<FSQuery path="/users/$userId/goals">
{({ data }) => {
return (
<Section title="Goals for today">
<AddGoal />
<br />
<Paper>
<Table>
<TableHead>
<TableRow>
<TableCell>Completed?</TableCell>
<TableCell>Title</TableCell>
<TableCell>Due on</TableCell>
<TableCell>Created</TableCell>
</TableRow>
</TableHead>
<TableBody>
{data.map(goal => <Goal key={goal.id} goal={goal} />)}
</TableBody>
</Table>
</Paper>
</Section>
)
}}
</FSQuery>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment