CR: use already-defined transition

This commit is contained in:
Michael Kirk 2021-03-19 11:14:31 -07:00 committed by Dustin Carlino
parent 014bd56379
commit cf14515110
2 changed files with 2 additions and 6 deletions

View File

@ -3,9 +3,7 @@ use sim::{TripEndpoint, TripID, TripPhaseType};
use widgetry::table::{Col, Filter, Table};
use widgetry::{EventCtx, Filler, GfxCtx, Line, Outcome, Panel, State, Text, Toggle, Widget};
type Transition = widgetry::Transition<App>;
use crate::app::App;
use crate::app::{App, Transition};
use crate::sandbox::dashboards::generic_trip_table::{open_trip_transition, preview_trip};
use crate::sandbox::dashboards::DashTab;

View File

@ -9,12 +9,10 @@ use widgetry::{
};
use super::generic_trip_table::{open_trip_transition, preview_trip};
use crate::app::App;
use crate::app::{App, Transition};
use crate::common::{checkbox_per_mode, cmp_duration_shorter, color_for_mode};
use crate::sandbox::dashboards::DashTab;
pub type Transition = widgetry::Transition<App>;
pub struct TripTable {
tab: DashTab,
table_tabs: TabController,