diff --git a/libs/ux-api/src/widgets/modal.rs b/libs/ux-api/src/widgets/modal.rs index 96a08b2c2..5efe36296 100644 --- a/libs/ux-api/src/widgets/modal.rs +++ b/libs/ux-api/src/widgets/modal.rs @@ -28,7 +28,6 @@ pub struct Modal<'a> { pub inverted: bool, pub style: GlyphStyle, pub helper_data: Option>, - pub name: String, // optimize draw time top_dirty: bool, @@ -39,7 +38,6 @@ pub struct Modal<'a> { impl<'a> Modal<'a> { pub fn new( - name: &str, action: ActionType, top_text: Option<&str>, bot_text: Option<&str>, @@ -73,7 +71,6 @@ impl<'a> Modal<'a> { inverted, style, helper_data: None, - name: String::from(name), top_dirty: true, bot_dirty: true, top_memoized_height: None,