File tree Expand file tree Collapse file tree 3 files changed +21
-18
lines changed
packages/r/pierre115/gnopub Expand file tree Collapse file tree 3 files changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ package gnopub
22
33import (
44 "chain/runtime"
5- "strings"
65
7- "gno.land/p/leon/svgbtn"
8- "gno.land/p/moul/txlink"
96 "gno.land/p/nt/ownable"
107 "gno.land/p/nt/ufmt"
118)
@@ -144,21 +141,6 @@ func Reset() string {
144141 return "The grid was successfully reset."
145142}
146143
147- func getColorName(color string) string {
148- switch color {
149- case "#f44336":
150- return "Red"
151- case "#2196f3":
152- return "Blue"
153- case "#4caf50":
154- return "Green"
155- case "#ff9800":
156- return "Orange"
157- default:
158- return "White"
159- }
160- }
161-
162144func isAuthorized(addr address) bool {
163145 return addr == OwnableAddress.Owner()
164146}
Original file line number Diff line number Diff line change 1+ package gnopub
2+
3+ func getColorName(color string) string {
4+ switch color {
5+ case "#f44336":
6+ return "Red"
7+ case "#2196f3":
8+ return "Blue"
9+ case "#4caf50":
10+ return "Green"
11+ case "#ff9800":
12+ return "Orange"
13+ default:
14+ return "White"
15+ }
16+ }
Original file line number Diff line number Diff line change 11package gnopub
22
33import (
4+ "chain/runtime"
5+ "strings"
6+
47 "gno.land/p/leon/svgbtn"
8+ "gno.land/p/moul/txlink"
9+ "gno.land/p/nt/ufmt"
510)
611
712func Render(path string) string {
You can’t perform that action at this time.
0 commit comments