From 0135c9091251c19cab96354ec1ead67b0e1cf827 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Fri, 22 Mar 2019 19:25:49 -0700 Subject: [PATCH] Add time range selector to dashboard when in mobile view Signed-off-by: Mcat12 --- src/components/dashboard/TimeRangeSelector.tsx | 11 +++++++++-- src/scss/_custom.scss | 15 +++++++++++++++ src/views/Dashboard.tsx | 6 ++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/src/components/dashboard/TimeRangeSelector.tsx b/src/components/dashboard/TimeRangeSelector.tsx index 53e73ea..dfe0a7c 100644 --- a/src/components/dashboard/TimeRangeSelector.tsx +++ b/src/components/dashboard/TimeRangeSelector.tsx @@ -36,6 +36,11 @@ export interface TimeRangeSelectorProps { * If the chosen label should be shown outside of the selector */ showLabel: boolean; + + /** + * The button size to use + */ + size?: string; } /** @@ -80,6 +85,7 @@ export const TimeRangeSelector = ( const last24Hours = t("Last 24 Hours"); const today = t("Today"); const label = renderLabel(props); + const size = props.size ? props.size : "sm"; return ( -