mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-11 14:10:42 +08:00
lib: Introduce tui-textarea
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ use radicle_tui as tui;
|
||||
|
||||
use tui::store;
|
||||
use tui::ui::widget::container::{Column, Container, Header, HeaderProps};
|
||||
use tui::ui::widget::text::{TextArea, TextAreaProps};
|
||||
use tui::ui::widget::input::{TextArea, TextAreaProps};
|
||||
use tui::ui::widget::window::{Page, Shortcuts, ShortcutsProps, Window, WindowProps};
|
||||
use tui::ui::widget::ToWidget;
|
||||
use tui::{BoxedAny, Channel, Exit};
|
||||
@@ -73,7 +73,7 @@ pub async fn main() -> Result<()> {
|
||||
.content(TextArea::default().to_widget(sender.clone()).on_update(
|
||||
|state: &State| {
|
||||
TextAreaProps::default()
|
||||
.text(&state.content.clone().into())
|
||||
.content(state.content.clone())
|
||||
.can_scroll(false)
|
||||
.to_boxed_any()
|
||||
.into()
|
||||
|
||||
Reference in New Issue
Block a user