From 832eb17a68e37f287206ec319a316ea91247808a Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Thu, 7 Mar 2024 09:34:25 -0500 Subject: Add default shortcuts + add flags for super key --- src/components/hello_world.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/components/hello_world.rs (limited to 'src/components/hello_world.rs') diff --git a/src/components/hello_world.rs b/src/components/hello_world.rs deleted file mode 100644 index ac9d02b..0000000 --- a/src/components/hello_world.rs +++ /dev/null @@ -1,25 +0,0 @@ -use ratatui::prelude::{Frame, Rect}; -use ratatui::widgets::{Paragraph, Wrap}; - -use crate::component::Component; - -#[derive(Default, Clone)] -pub struct HelloWorld { - pub text: String, -} - -impl Component for HelloWorld { - fn init(&mut self) -> eyre::Result<()> { - self.text = "Hello, world!".to_string(); - Ok(()) - } - - fn render(&mut self, frame: &mut Frame, rect: Rect) -> eyre::Result<()> { - frame.render_widget( - Paragraph::new(self.text.clone()).wrap(Wrap { trim: true }), - rect, - ); - - Ok(()) - } -} -- cgit v1.2.3