summaryrefslogtreecommitdiffstats
path: root/src/interactive/widgets/help.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-06 08:08:15 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-06 08:08:15 +0530
commit7bef5974e86de825dcb0b3507df16a80b6986d88 (patch)
tree965fa139b9b56d0adba0a21cf180741c01ea3bea /src/interactive/widgets/help.rs
parent982446ad0ef9a475274c9a0f05a32147fcafd061 (diff)
refactor
Diffstat (limited to 'src/interactive/widgets/help.rs')
-rw-r--r--src/interactive/widgets/help.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interactive/widgets/help.rs b/src/interactive/widgets/help.rs
index 66fc500..aad6f93 100644
--- a/src/interactive/widgets/help.rs
+++ b/src/interactive/widgets/help.rs
@@ -10,16 +10,16 @@ use tui::{
use tui_react::ToplevelComponent;
#[derive(Default, Clone)]
-pub struct ReactHelpPane {
+pub struct HelpPane {
pub scroll: u16,
}
-pub struct ReactHelpPaneProps {
+pub struct HelpPaneProps {
pub border_style: Style,
}
-impl ToplevelComponent for ReactHelpPane {
- type Props = ReactHelpPaneProps;
+impl ToplevelComponent for HelpPane {
+ type Props = HelpPaneProps;
fn render(&mut self, props: impl Borrow<Self::Props>, area: Rect, buf: &mut Buffer) {
let (texts, num_lines) = {
@@ -98,7 +98,7 @@ impl ToplevelComponent for ReactHelpPane {
(lines.into_inner(), num_lines.get())
};
- let ReactHelpPaneProps { border_style } = props.borrow();
+ let HelpPaneProps { border_style } = props.borrow();
let mut block = Block::default()
.title("Help")