gearheads
/
mastodon
Archived
2
0
Fork 0
This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
mastodon/app/assets/javascripts/components/actions/timelines.jsx

27 lines
526 B
React
Raw Normal View History

export const TIMELINE_SET = 'TIMELINE_SET';
export const TIMELINE_UPDATE = 'TIMELINE_UPDATE';
export const TIMELINE_DELETE = 'TIMELINE_DELETE';
export function setTimeline(timeline, statuses) {
return {
type: TIMELINE_SET,
timeline: timeline,
statuses: statuses
};
}
export function updateTimeline(timeline, status) {
return {
type: TIMELINE_UPDATE,
timeline: timeline,
status: status
};
}
export function deleteFromTimelines(id) {
return {
type: TIMELINE_DELETE,
id: id
};
}