Use more specific import for popup Type
This commit is contained in:
parent
9abb2dde7f
commit
1a13931831
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ use crossterm::event::KeyEvent;
|
|||
use ratatui::{prelude::*, widgets::*};
|
||||
use tokio::sync::mpsc::UnboundedSender;
|
||||
|
||||
use super::{popup::Type, state::StatefulList, Component};
|
||||
use super::{popup, state::StatefulList, Component};
|
||||
use crate::{
|
||||
action::Action,
|
||||
app::Mode,
|
||||
|
|
@ -192,7 +192,7 @@ impl Component for Left {
|
|||
if self.list_drivers.items.is_empty() {
|
||||
if let Some(command_tx) = self.command_tx.clone() {
|
||||
command_tx.send(Action::DisplayPopup(
|
||||
Type::Error,
|
||||
popup::Type::Error,
|
||||
String::from("No drivers available to install"),
|
||||
))?;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue