Progress
This commit is contained in:
18
app/javascript/gabsocial/actions/popover.js
Normal file
18
app/javascript/gabsocial/actions/popover.js
Normal file
@@ -0,0 +1,18 @@
|
||||
export const POPOVER_OPEN = 'POPOVER_OPEN'
|
||||
export const POPOVER_CLOSE = 'POPOVER_CLOSE'
|
||||
|
||||
export function openPopover(type, keyboard = false, placement = 'top') {
|
||||
return {
|
||||
keyboard,
|
||||
placement,
|
||||
type: POPOVER_OPEN,
|
||||
popoverType: type,
|
||||
}
|
||||
}
|
||||
|
||||
export function closePopover(type) {
|
||||
return {
|
||||
type: POPOVER_CLOSE,
|
||||
popoverType: type,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user