-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.js
40 lines (33 loc) · 955 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import React, { Component } from 'react';
import { withAuth } from '@okta/okta-react';
import AppBar from '../AppBar';
import Button from 'material-ui/Button';
import axios from 'axios';
class Settings extends Component {
render() {
return (
<AppBar>
Settings..
<Button
variant="raised"
color="secondary"
onClick={async () => {
this.props.history.push('/dashbboard?hello=1');
// const accessToken = await this.props.auth.getAccessToken();
// console.log(accessToken);
// let data = await axios
// .create({
// baseURL: '$KONG_NGROK_PROXY_URL',
// timeout: 1000
// })
// .get('/api/v0/id?jwt=' + accessToken);
// console.log(data);
}}
>
Test IPFS
</Button>
</AppBar>
);
}
}
export default withAuth(Settings);