stuff
This commit is contained in:
parent
db8e66666c
commit
074cb059eb
@ -1,7 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import(
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -70,7 +71,7 @@ func (m model) View() string {
|
|||||||
switch m.tab {
|
switch m.tab {
|
||||||
case 0:
|
case 0:
|
||||||
s += "Inbox"
|
s += "Inbox"
|
||||||
inboxFilter := func(t todo) bool { return t.isInbox}
|
inboxFilter := func(t todo) bool { return t.isInbox }
|
||||||
currentList = filter(m.todos, inboxFilter)
|
currentList = filter(m.todos, inboxFilter)
|
||||||
case 1:
|
case 1:
|
||||||
s += "Today"
|
s += "Today"
|
||||||
@ -84,7 +85,6 @@ func (m model) View() string {
|
|||||||
|
|
||||||
s += "\n\n"
|
s += "\n\n"
|
||||||
|
|
||||||
|
|
||||||
// Iterate over our choices
|
// Iterate over our choices
|
||||||
for i, choice := range currentList {
|
for i, choice := range currentList {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user