bigbuffet-rw/app/soapbox/actions/profile_hover_card.js

25 lines
557 B
JavaScript
Raw Normal View History

export const PROFILE_HOVER_CARD_OPEN = 'PROFILE_HOVER_CARD_OPEN';
export const PROFILE_HOVER_CARD_UPDATE = 'PROFILE_HOVER_CARD_UPDATE';
export const PROFILE_HOVER_CARD_CLOSE = 'PROFILE_HOVER_CARD_CLOSE';
export function openProfileHoverCard(ref, accountId) {
return {
type: PROFILE_HOVER_CARD_OPEN,
ref,
accountId,
};
}
2020-09-10 18:18:04 -07:00
export function updateProfileHoverCard() {
2020-09-10 18:18:04 -07:00
return {
type: PROFILE_HOVER_CARD_UPDATE,
};
}
export function closeProfileHoverCard(force = false) {
return {
type: PROFILE_HOVER_CARD_CLOSE,
force,
2020-09-10 18:18:04 -07:00
};
}