mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14:21 +01:00
feat(action): add ReactAction
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -53,6 +53,18 @@ impl NoteAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub struct ReactAction {
|
||||||
|
pub note_id: NoteId,
|
||||||
|
pub content: &'static str,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ReactAction {
|
||||||
|
pub const fn new(note_id: NoteId, content: &'static str) -> Self {
|
||||||
|
Self { note_id, content }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Eq, PartialEq, Clone)]
|
#[derive(Debug, Eq, PartialEq, Clone)]
|
||||||
pub enum ZapAction {
|
pub enum ZapAction {
|
||||||
Send(ZapTargetAmount),
|
Send(ZapTargetAmount),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
mod action;
|
mod action;
|
||||||
mod context;
|
mod context;
|
||||||
|
|
||||||
pub use action::{NoteAction, ScrollInfo, ZapAction, ZapTargetAmount};
|
pub use action::{NoteAction, ReactAction, ScrollInfo, ZapAction, ZapTargetAmount};
|
||||||
pub use context::{BroadcastContext, ContextSelection, NoteContextSelection};
|
pub use context::{BroadcastContext, ContextSelection, NoteContextSelection};
|
||||||
|
|
||||||
use crate::Accounts;
|
use crate::Accounts;
|
||||||
|
|||||||
Reference in New Issue
Block a user