From 9fe8424293ca1884ce96e2a0624df2523ef8cd82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Salamon?= Date: Wed, 4 Sep 2024 14:02:48 +0200 Subject: [PATCH] wip fix imports --- app/view/disease_outbreaks/disease_app/disease_app.R | 6 +++++- app/view/disease_outbreaks/disease_app/disease_select.R | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/view/disease_outbreaks/disease_app/disease_app.R b/app/view/disease_outbreaks/disease_app/disease_app.R index 45d42d6..5baaa23 100644 --- a/app/view/disease_outbreaks/disease_app/disease_app.R +++ b/app/view/disease_outbreaks/disease_app/disease_app.R @@ -6,6 +6,7 @@ box::use( box::use( app/view/disease_outbreaks/disease_app/disease_map[disease_map_ui, disease_map_server], + app/view/disease_outbreaks/disease_app/disease_select[disease_select_ui, disease_select_server], ) @@ -20,7 +21,10 @@ disease_app_ui <- function(id, i18n) { disease_map_ui( ns("disease_map"), i18n ), - tags$h3(i18n$translate("Location")), + disease_select_ui( + ns("disease_select"), i18n + ), + # tags$h3(i18n$translate("Location")), ), tags$h3(i18n$translate("Output Plot")) ) diff --git a/app/view/disease_outbreaks/disease_app/disease_select.R b/app/view/disease_outbreaks/disease_app/disease_select.R index 51b2caf..74c5c8a 100644 --- a/app/view/disease_outbreaks/disease_app/disease_select.R +++ b/app/view/disease_outbreaks/disease_app/disease_select.R @@ -1,7 +1,9 @@ box::use( - shiny[moduleServer, NS, tagList, selectInput, bootstrapPage] + shiny[moduleServer, NS, tagList, selectInput, bootstrapPage, tags], + bslib[card, card_header, card_body], ) +#' @export disease_select_ui <- function(id, theme, i18n) { ns <- NS(id) bootstrapPage(