defined data structure for master password form

This commit is contained in:
2024-09-07 16:57:20 -04:00
parent a3f405d9c5
commit 2b427789d2
2 changed files with 65 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ import Brick
import Password.App.Types
-- | The main application
passmanApp :: App AppState () ()
passmanApp :: App AppState () ResName
passmanApp = App
{ appDraw = drawFunc
, appChooseCursor = neverShowCursor
@@ -48,10 +48,10 @@ passmanApp = App
, appAttrMap = const $ attrMap (style 0) []
}
drawFunc :: AppState -> [Widget ()]
drawFunc :: AppState -> [Widget ResName]
drawFunc = const [emptyWidget]
eventHandler :: BrickEvent () () -> EventM () AppState ()
eventHandler :: BrickEvent ResName () -> EventM ResName AppState ()
eventHandler = const halt
--jl