File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/gatsby-theme/src Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import CustomButton from './CustomButton';
4
4
import { loginUser } from '../utils/auth/auth' ;
5
5
import WithCurrentUser from '../utils/auth/WithCurrentUser' ;
6
6
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
+
7
12
const Upvote = ( ) => {
8
13
return (
9
14
< WithCurrentUser >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const MainLayout = styled.main`
13
13
14
14
type LayoutProps = React . ReactNode & RouterProps ;
15
15
16
- const Layout = ( { children } ) => {
16
+ const Layout : React . FunctionComponent < LayoutProps > = ( { children } ) => {
17
17
const { site } = useLayoutQuery ( ) ;
18
18
19
19
const { title, description, keywords } = site ! . siteMetadata ;
Original file line number Diff line number Diff line change 1
- import React , { Component } from 'react' ;
1
+ import React from 'react' ;
2
2
import { Query } from 'react-apollo' ;
3
3
import { optionalChaining } from '../helpers' ;
4
4
import gql from 'graphql-tag' ;
You can’t perform that action at this time.
0 commit comments