Skip to content

Commit def816b

Browse files
committed
Fix: Fmt CI Check
1 parent 851866e commit def816b

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

packages/r/pierre115/gnopub/grid.gno

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ package gnopub
22

33
import (
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-
162144
func isAuthorized(addr address) bool {
163145
return addr == OwnableAddress.Owner()
164146
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

packages/r/pierre115/gnopub/render.gno

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
package gnopub
22

33
import (
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

712
func Render(path string) string {

0 commit comments

Comments
 (0)