Skip to content

Commit

Permalink
PLT-6236 update buttons design on contract create
Browse files Browse the repository at this point in the history
  • Loading branch information
ladamesny committed Jul 13, 2023
1 parent adae077 commit 940343e
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions src/Component/CreateContract.purs
Original file line number Diff line number Diff line change
Expand Up @@ -233,23 +233,29 @@ mkRoleTokensComponent = do
fields = StatelessFormSpec.renderFormSpec formSpec formState
formBody = DOM.div { className: "form-group" } fields
formActions = DOOM.fragment
[ link
{ label: DOOM.text "Cancel"
, onClick: onDismiss
, showBorders: true
, extraClassNames: "me-3"
}
, DOM.button
do
let
disabled = case result of
Just (V (Right _) /\ _) -> false
_ -> true
{ className: "btn btn-primary"
, onClick: onSubmit'
, disabled
}
[ R.text "Ok" ]
[ DOM.div { className: "row" } $
[ DOM.div { className: "col-6 text-start" } $
[ link
{ label: DOOM.text "Cancel"
, onClick: onDismiss
, showBorders: true
, extraClassNames: "me-3"
}
]
, DOM.div { className: "col-6 text-end" } $
[ DOM.button
do
let
disabled = case result of
Just (V (Right _) /\ _) -> false
_ -> true
{ className: "btn btn-primary"
, onClick: onSubmit'
, disabled
}
[ R.text "Ok" ]
]
]
]
wrappedContentWithFooter formBody formActions

Expand Down

0 comments on commit 940343e

Please sign in to comment.