mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 19:11:14 +00:00
Add generic modals actions
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
export function displayModal(payload) {
|
||||
return {
|
||||
type: 'UI_DISPLAY_MODAL',
|
||||
payload
|
||||
};
|
||||
}
|
||||
|
||||
export function dismissModal(payload) {
|
||||
return {
|
||||
type: 'UI_DISPLAY_MODAL',
|
||||
payload: {
|
||||
modal: null
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export function handleTorrentClick(payload) {
|
||||
return {
|
||||
type: 'CLICK_TORRENT',
|
||||
|
||||
Reference in New Issue
Block a user