Created
November 28, 2018 23:21
-
-
Save brennancheung/5f31cba90775034aa0561b023837ad75 to your computer and use it in GitHub Desktop.
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
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