File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
delivery-calculator/src/App/Widgets
miso-functora/src/Functora/Miso/Widgets Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fav st =
17
17
Dialog. dialog
18
18
( Dialog. defOpts
19
19
& # optsKeyed
20
- .~ " fav"
20
+ .~ Just " fav"
21
21
)
22
22
Dialog. Args
23
23
{ Dialog. argsModel = st,
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ menu st =
126
126
& # optsTitleIcon
127
127
.~ Just Icon. IconSettings
128
128
& # optsKeyed
129
- .~ (" menu" :: Unicode )
129
+ .~ Just (" menu" :: Unicode )
130
130
& # optsTitle
131
131
.~ Just " Settings"
132
132
)
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ data Opts model action = Opts
29
29
optsFooterRight :: [View action ] -> [View action ],
30
30
optsExtraOnClose :: model -> model ,
31
31
optsFlexContent :: Bool ,
32
- optsKeyed :: Unicode ,
32
+ optsKeyed :: Maybe Unicode ,
33
33
optsIcon :: Icon. Icon -> View action
34
34
}
35
35
deriving stock (Generic )
@@ -45,7 +45,7 @@ defOpts =
45
45
optsFooterRight = id ,
46
46
optsExtraOnClose = id ,
47
47
optsFlexContent = True ,
48
- optsKeyed = mempty ,
48
+ optsKeyed = Nothing ,
49
49
optsIcon = Icon. icon @ Icon. Fa
50
50
}
51
51
@@ -58,12 +58,18 @@ dialog opts args =
58
58
if not opened
59
59
then mempty
60
60
else
61
- [ keyed (optsKeyed opts <> " -overlay" )
61
+ [ maybe
62
+ id
63
+ (keyed . (<> " -overlay" ))
64
+ (optsKeyed opts)
62
65
$ FixedOverlay. fixedOverlay
63
66
[ role_ " button" ,
64
67
onClick $ closeDialogAction opts args
65
68
],
66
- keyed (optsKeyed opts <> " -content" )
69
+ maybe
70
+ id
71
+ (keyed . (<> " -content" ))
72
+ (optsKeyed opts)
67
73
. nodeHtml " dialog" [boolProp " open" True ]
68
74
$ Flex. flexLeftRight
69
75
header_
You can’t perform that action at this time.
0 commit comments