Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions conreq/_core/home/components/modal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from copy import copy
from uuid import uuid4

import idom
from idom.html import div, i
Expand Down Expand Up @@ -28,27 +27,6 @@
def modal(websocket, state: HomepageState, set_state):
return div()

return bootstrap_modal(
{
"show": state._modal_state.show,
"centered": state._modal_state.centered,
"size": state._modal_state.size,
**state._modal_state.kwargs,
},
*(
[state._modal(websocket, state, set_state)]
if state._modal
else [
modal_head(websocket, state, set_state),
modal_body(websocket, state, set_state),
modal_footer(websocket, state, set_state),
]
),
key=f"{state._modal.__module__}.{state._modal.__name__}"
if state._modal
else str(uuid4()),
)
Comment on lines 29 to -50
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function modal refactored with the following changes:



def modal_head(websocket, state: HomepageState, set_state):
# pylint: disable=unused-argument
Expand Down