Use more specific import for popup Type

This commit is contained in:
2Shirt 2024-11-09 20:53:33 -08:00
parent 9abb2dde7f
commit 1a13931831
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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"),
))?;
}