This repository was archived by the owner on Apr 12, 2023. It is now read-only.
File tree 3 files changed +6
-9
lines changed
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,10 @@ const Comments = () => {
11
11
const [ loading , setLoading ] = useState ( false ) ;
12
12
const [ body , setBody ] = useState ( "" )
13
13
const [ mode , setMode ] = useState ( "" )
14
- let token = 'cf96a9e12b8d7877c8c8647b097cd3db2bdebcad ' ;
14
+ let token = '' ;
15
15
const client = new ApolloClient ( {
16
16
uri : 'https://api.github.com/graphql' ,
17
+
17
18
request : ( operation ) => {
18
19
operation . setContext ( {
19
20
headers : {
@@ -93,8 +94,7 @@ const Comments = () => {
93
94
`
94
95
} ) . then ( result => {
95
96
console . log ( result )
96
- localStorage . setItem ( 'tabNumber' , 0 )
97
- localStorage . setItem ( 'repoName' , '' )
97
+ localStorage . clear ( ) ;
98
98
window . location . reload ( ) ;
99
99
alert ( "Created Comment" ) ;
100
100
} )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const Issues = () => {
16
16
const [ body , setBody ] = useState ( "" )
17
17
const [ mode , setMode ] = useState ( "" )
18
18
let comments = [ ]
19
- let token = 'cf96a9e12b8d7877c8c8647b097cd3db2bdebcad ' ;
19
+ let token = '' ;
20
20
const client = new ApolloClient ( {
21
21
uri : 'https://api.github.com/graphql' ,
22
22
request : ( operation ) => {
@@ -127,8 +127,7 @@ const Issues = () => {
127
127
}
128
128
`
129
129
} ) . then ( result => {
130
- localStorage . setItem ( 'tabNumber' , 0 )
131
- localStorage . setItem ( 'repoName' , '' )
130
+ localStorage . clear ( ) ;
132
131
window . location . reload ( ) ;
133
132
alert ( "Created Issue: " + result . data . createIssue . issue . title )
134
133
} )
Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from 'react' ;
2
2
import Pagination from '../Pagination' ;
3
3
import { TableHeader , TableBody , Table } from '@patternfly/react-table' ;
4
- import { css } from '@patternfly/react-styles' ;
5
- import styles from '@patternfly/react-styles/css/components/Table/table' ;
6
4
import Button from 'react-bootstrap/Button' ;
7
5
import ApolloClient from 'apollo-boost' ;
8
6
import gql from 'graphql-tag' ;
@@ -13,7 +11,7 @@ const Repos = () => {
13
11
const [ currentPage , setCurrentPage ] = useState ( 1 ) ;
14
12
const [ reposPerPage , setReposPerPage ] = useState ( 6 ) ;
15
13
let issues = [ ] ;
16
- let token = 'cf96a9e12b8d7877c8c8647b097cd3db2bdebcad ' ;
14
+ let token = '' ;
17
15
const client = new ApolloClient ( {
18
16
uri : 'https://api.github.com/graphql' ,
19
17
request : ( operation ) => {
You can’t perform that action at this time.
0 commit comments