Skip to content

Commit e74cb5a

Browse files
committed
add comments about next steps
1 parent 8a3400f commit e74cb5a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/gatsby-theme/src/components/Upvote.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import CustomButton from './CustomButton';
44
import { loginUser } from '../utils/auth/auth';
55
import WithCurrentUser from '../utils/auth/WithCurrentUser';
66

7+
// Still to-do:
8+
// Query the backend with the ID of the tutorial to see whcih tutorial was upvoted
9+
// Create a way to store which user has upvoted the tutorial so that they can only
10+
// upvote it once
11+
712
const Upvote = () => {
813
return (
914
<WithCurrentUser>

packages/gatsby-theme/src/components/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const MainLayout = styled.main`
1313

1414
type LayoutProps = React.ReactNode & RouterProps;
1515

16-
const Layout = ({ children }) => {
16+
const Layout: React.FunctionComponent<LayoutProps> = ({ children }) => {
1717
const { site } = useLayoutQuery();
1818

1919
const { title, description, keywords } = site!.siteMetadata;

packages/gatsby-theme/src/utils/auth/WithCurrentUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react';
1+
import React from 'react';
22
import { Query } from 'react-apollo';
33
import { optionalChaining } from '../helpers';
44
import gql from 'graphql-tag';

0 commit comments

Comments
 (0)