Skip to content

Commit

Permalink
update TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Steinke committed Feb 9, 2024
1 parent 6aff3d4 commit bfba368
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func main() {
flag.Parse()

l := NewLogic()
// TODO: move logic out of the UI thread
// TODO: remove logs everywhere
app.Handle(simonSays, l.simonSays)
app.Handle(click, l.handleClick)
app.Handle(newGame, l.handleNewGame)
Expand Down
3 changes: 2 additions & 1 deletion ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func (g *ui) OnMount(ctx app.Context) {
}

func (g *ui) Render() app.UI {
// TODO: make the rendering responsive
// TODO: improve overall styling
gameField := app.Div().Class("game-field")

firstButton := NewButton(0)
Expand All @@ -55,7 +57,6 @@ func (g *ui) Render() app.UI {
fourthButton,
)

// TODO: styling
if g.Text == "" {
g.Text = "Start a New Game"
}
Expand Down

0 comments on commit bfba368

Please sign in to comment.