moved quick transaction to folder module
This commit is contained in:
parent
54750cd160
commit
7ff39c993f
2 changed files with 42 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
|
||||
pub mod paycheck;
|
||||
|
||||
use crate::app::App;
|
||||
use crossterm::event::{KeyCode, KeyEvent, KeyEventKind};
|
||||
use ratatui::{
|
||||
|
@ -9,6 +12,10 @@ use ratatui::{
|
|||
Frame,
|
||||
};
|
||||
|
||||
enum SelectedQuickEntry {
|
||||
Paycheck,
|
||||
}
|
||||
|
||||
pub struct QuickTransactionState {
|
||||
|
||||
}
|
35
src/uis/quick_transaction/paycheck.rs
Normal file
35
src/uis/quick_transaction/paycheck.rs
Normal file
|
@ -0,0 +1,35 @@
|
|||
|
||||
use ratatui::{
|
||||
backend::Backend,
|
||||
layout::{Constraint, Direction, Layout, Rect},
|
||||
style::{Color, Style},
|
||||
text::{Line, Span, Text},
|
||||
widgets::{Block, Borders, List, ListItem, Paragraph},
|
||||
Frame,
|
||||
};
|
||||
|
||||
use crate::app::App;
|
||||
|
||||
pub struct QuickPaycheckState {
|
||||
pub gross_amount: String,
|
||||
pub net_amount: String,
|
||||
}
|
||||
|
||||
impl QuickPaycheckState {
|
||||
pub fn new() -> QuickPaycheckState {
|
||||
QuickPaycheckState {
|
||||
net_amount: "".to_string(),
|
||||
gross_amount: "".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn render<B: Backend>(f: &mut Frame<B>, body_rect: Rect, app: &mut App) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for QuickPaycheckState {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue