@@ -23,6 +23,7 @@ class Main extends Component {
23
23
this . props . uploadFile ( description )
24
24
} } >
25
25
< div className = "form-group" >
26
+
26
27
< br > </ br >
27
28
< input
28
29
id = "fileDescription"
@@ -33,7 +34,6 @@ class Main extends Component {
33
34
required />
34
35
</ div >
35
36
< input type = "file" onChange = { this . props . captureFile } className = "text-white text-monospace" />
36
-
37
37
< button type = "submit" style = { { color : "grey" , background : "black" } } className = "btn-primary btn-block" > < b > Upload!</ b > </ button >
38
38
39
39
@@ -43,14 +43,14 @@ class Main extends Component {
43
43
< table className = "table-sm table-bordered text-monospace" style = { { width : '1000px' , maxHeight : '450px' } } >
44
44
< thead style = { { 'fontSize' : '15px' } } >
45
45
< tr className = "bg-dark text-white" >
46
- < th scope = "col" style = { { width : '10px' } } > id </ th >
47
- < th scope = "col" style = { { width : '200px' } } > name </ th >
48
- < th scope = "col" style = { { width : '230px' } } > description </ th >
49
- < th scope = "col" style = { { width : '120px' } } > type </ th >
50
- < th scope = "col" style = { { width : '90px' } } > size </ th >
51
- < th scope = "col" style = { { width : '90px' } } > date </ th >
52
- < th scope = "col" style = { { width : '120px' } } > uploader /view</ th >
53
- < th scope = "col" style = { { width : '120px' } } > hash /view/get</ th >
46
+
47
+ < th scope = "col" style = { { width : '200px' } } > Name </ th >
48
+ < th scope = "col" style = { { width : '230px' } } > Description </ th >
49
+ < th scope = "col" style = { { width : '120px' } } > Type </ th >
50
+ < th scope = "col" style = { { width : '90px' } } > Size </ th >
51
+ < th scope = "col" style = { { width : '90px' } } > Date </ th >
52
+ < th scope = "col" style = { { width : '120px' } } > Uploader /view</ th >
53
+ < th scope = "col" style = { { width : '120px' } } > Hash /view/get</ th >
54
54
< th scope = "col" style = { { width : '120px' } } > Qr code</ th >
55
55
< th scope = "col" style = { { width : '120px' } } > Share!</ th >
56
56
</ tr >
@@ -59,7 +59,7 @@ class Main extends Component {
59
59
return (
60
60
< thead style = { { 'fontSize' : '12px' } } key = { key } >
61
61
< tr >
62
- < td > { file . fileId } </ td >
62
+
63
63
< td > { file . fileName } </ td >
64
64
< td > { file . fileDescription } </ td >
65
65
< td > { file . fileType } </ td >
@@ -76,15 +76,15 @@ class Main extends Component {
76
76
77
77
< td >
78
78
< a
79
- href = { "https://etherscan. io/address /" + file . uploader }
79
+ href = { "https://ipfs.infura. io/ipfs /" + file . fileHash }
80
80
rel = "noopener noreferrer"
81
81
target = "_blank" >
82
- { file . uploader . substring ( 0 , 10 ) } ...
82
+ { file . fileHash . substring ( 0 , 10 ) } ...
83
83
</ a >
84
84
</ td >
85
85
< td >
86
86
< img
87
- src = { "https://api.qrserver.com/v1/create-qr-code/?size=150x150 &data=https://ipfs.infura.io/ipfs/" + file . fileHash }
87
+ src = { "https://api.qrserver.com/v1/create-qr-code/?size=120x120 &data=https://ipfs.infura.io/ipfs/" + file . fileHash }
88
88
>
89
89
90
90
</ img >
0 commit comments