Skip to content

Commit

Permalink
Minor refactor of inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Dec 19, 2023
1 parent c35ac3b commit f37e819
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions R/sccs-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ sccsServer <- function(
paste(res$exposureName, "\n\t-", res$indicationName)

Check warning on line 120 in R/sccs-main.R

View check run for this annotation

Codecov / codecov/patch

R/sccs-main.R#L120

Added line #L120 was not covered by tests
}

exposureSelectionInput <- createInputSetting(
shiny::moduleServer(id, function(input, output, session) {

inputSettings <- list(
createInputSetting(
rowNumber = 1,
columnWidth = 12,
varName = 'exposure',
Expand All @@ -136,12 +139,7 @@ sccsServer <- function(
keepAlwaysOpen = FALSE
),
namesCallback = namesCallback
)

shiny::moduleServer(id, function(input, output, session) {

inputSettings <- list(
exposureSelectionInput,
),
createInputSetting(
rowNumber = 2,
columnWidth = 6,
Expand Down

0 comments on commit f37e819

Please sign in to comment.