Update modalkit for newer ratatui and crossterm

This commit is contained in:
Benjamin Große 2023-07-01 08:58:48 +01:00 committed by Ulyssa
parent 9197864c5c
commit 95af00ba93
No known key found for this signature in database
GPG key ID: F2873CA2997B83C5
12 changed files with 221 additions and 183 deletions

View file

@ -11,7 +11,7 @@ use modalkit::tui::{
buffer::Buffer,
layout::Rect,
style::{Color, Style},
text::{Span, Spans, Text},
text::{Line, Span, Text},
widgets::StatefulWidget,
};
@ -140,7 +140,7 @@ impl<'a> StatefulWidget for Space<'a> {
},
Err(e) => {
let lines = vec![
Spans::from("Unable to fetch space room hierarchy:"),
Line::from("Unable to fetch space room hierarchy:"),
Span::styled(e.to_string(), Style::default().fg(Color::Red)).into(),
];