diff --git a/bin/commands/inbox/select/ui.rs b/bin/commands/inbox/select/ui.rs index a69e5039..79ec1653 100644 --- a/bin/commands/inbox/select/ui.rs +++ b/bin/commands/inbox/select/ui.rs @@ -20,8 +20,8 @@ use tui::ui::widget::input::{TextField, TextFieldProps}; use tui::ui::widget::text::{Paragraph, ParagraphProps}; use tui::ui::widget::{self, TableUtils}; use tui::ui::widget::{ - Column, EventCallback, Shortcuts, ShortcutsProps, Table, TableProps, UpdateCallback, View, - Widget, + Column, EventCallback, Properties, Shortcuts, ShortcutsProps, Table, TableProps, + UpdateCallback, View, Widget, }; use tui::Selection; @@ -214,6 +214,8 @@ impl<'a> From<&State> for NotificationsProps<'a> { } } +impl<'a> Properties for NotificationsProps<'a> {} + struct Notifications<'a, B: Backend> { /// Internal properties props: NotificationsProps<'a>, @@ -273,14 +275,13 @@ where .on_update(|state| { let props = NotificationsProps::from(state); - Box::>::new( TableProps::default() .columns(props.columns) .items(state.notifications()) .footer(!state.ui.show_search) .page_size(state.ui.page_size) - .cutoff(props.cutoff, props.cutoff_after), - ) + .cutoff(props.cutoff, props.cutoff_after) + .to_boxed() }), ), footer: Footer::new(state, action_tx).to_boxed(), @@ -689,6 +690,8 @@ impl<'a> From<&State> for HelpProps<'a> { } } +impl<'a> Properties for HelpProps<'a> {} + pub struct Help<'a, B: Backend> { /// Internal properties props: HelpProps<'a>, diff --git a/bin/commands/issue/select/ui.rs b/bin/commands/issue/select/ui.rs index d1cd3a46..b39c02d5 100644 --- a/bin/commands/issue/select/ui.rs +++ b/bin/commands/issue/select/ui.rs @@ -22,8 +22,8 @@ use tui::ui::widget::input::{TextField, TextFieldProps}; use tui::ui::widget::text::{Paragraph, ParagraphProps}; use tui::ui::widget::{self, TableUtils}; use tui::ui::widget::{ - Column, EventCallback, Shortcuts, ShortcutsProps, Table, TableProps, UpdateCallback, View, - Widget, + Column, EventCallback, Properties, Shortcuts, ShortcutsProps, Table, TableProps, + UpdateCallback, View, Widget, }; use tui::Selection; diff --git a/bin/commands/patch/select/ui.rs b/bin/commands/patch/select/ui.rs index 45493283..593276fc 100644 --- a/bin/commands/patch/select/ui.rs +++ b/bin/commands/patch/select/ui.rs @@ -23,8 +23,8 @@ use tui::ui::widget::input::{TextField, TextFieldProps}; use tui::ui::widget::text::{Paragraph, ParagraphProps}; use tui::ui::widget::{self, TableUtils}; use tui::ui::widget::{ - Column, EventCallback, Shortcuts, ShortcutsProps, Table, TableProps, UpdateCallback, View, - Widget, + Column, EventCallback, Properties, Shortcuts, ShortcutsProps, Table, TableProps, + UpdateCallback, View, Widget, }; use tui::Selection; @@ -228,6 +228,8 @@ impl<'a> From<&State> for PatchesProps<'a> { } } +impl<'a> Properties for PatchesProps<'a> {} + struct Patches<'a, B> { /// Internal properties props: PatchesProps<'a>, @@ -750,6 +752,8 @@ impl<'a> From<&State> for HelpProps<'a> { } } +impl<'a> Properties for HelpProps<'a> {} + pub struct Help<'a, B: Backend> { /// Internal properties props: HelpProps<'a>,