Skip to content

Commit

Permalink
fix: remove conditinal for editing span
Browse files Browse the repository at this point in the history
  • Loading branch information
sumoduduk committed Apr 10, 2024
1 parent 48bcbac commit 0c54f6c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/tui/main_layout/footer_tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ pub fn footer_comp_mode(app: &AppTui) -> Paragraph<'static> {

let divider_span = Span::styled(" | ", Style::default().fg(Color::White));

let is_editing_span = match app.curr_screen {
CurrentScreen::Main => Span::styled(
span_editing.load_text(language),
Style::default().fg(Color::Green),
),
_ => Span::styled(" ", Style::default().fg(Color::LightGreen)),
};
let is_editing_span = Span::styled(
span_editing.load_text(language),
Style::default().fg(Color::Red),
);

let curr_navigation_text = vec![cur_span, divider_span, is_editing_span];

Expand Down

0 comments on commit 0c54f6c

Please sign in to comment.