From 2f1c1123cd864a050f411b237427d3058a4f46f2 Mon Sep 17 00:00:00 2001 From: Jakub Nowicki Date: Mon, 7 Aug 2023 14:15:09 +0200 Subject: [PATCH] style: Fix code style. --- inst/examples/Overlay.R | 4 ++-- inst/examples/Toast.R | 10 +++++----- inst/examples/Tree.R | 4 ++-- inst/examples/showcase/app.R | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/inst/examples/Overlay.R b/inst/examples/Overlay.R index 8966d2a..1f05672 100644 --- a/inst/examples/Overlay.R +++ b/inst/examples/Overlay.R @@ -30,8 +30,8 @@ server <- function(id) { interactive = TRUE, H5("Analytical applications"), tags$p( - "User interfaces that enable people to interact smoothly with data,", - " ask better questions, and make better decisions." + "User interfaces that enable people to interact smoothly with data,", + " ask better questions, and make better decisions." ), Button.shinyInput( inputId = ns("closeOverlay"), diff --git a/inst/examples/Toast.R b/inst/examples/Toast.R index 303df93..6293740 100644 --- a/inst/examples/Toast.R +++ b/inst/examples/Toast.R @@ -28,11 +28,11 @@ ui <- function(id) { ) ), H3("Another toaster"), - Button.shinyInput( - inputId = ns("anotherToastDanger"), - "Another danger", - intent = "danger" - ), + Button.shinyInput( + inputId = ns("anotherToastDanger"), + "Another danger", + intent = "danger" + ), H3("Progress"), Button.shinyInput( inputId = ns("toastProgress"), diff --git a/inst/examples/Tree.R b/inst/examples/Tree.R index 4d08b64..e1e6ef6 100644 --- a/inst/examples/Tree.R +++ b/inst/examples/Tree.R @@ -121,12 +121,12 @@ server <- function(id) { ) }) - output$info <- renderReact({ + output$info <- renderReact({ UL( tags$li("Selected (id): ", input$click$id), tags$li("Selected (label): ", input$click$label) ) - }) + }) output$selected_nodes_list <- renderReact({ UL(lapply(input$selected_nodes, function(node) tags$li(node))) diff --git a/inst/examples/showcase/app.R b/inst/examples/showcase/app.R index d9d3432..0c3f2ab 100644 --- a/inst/examples/showcase/app.R +++ b/inst/examples/showcase/app.R @@ -208,8 +208,8 @@ makeRouter <- function(items, routes) { href = "https://appsilon.github.io/shiny.react/", target = "_blank", img( - class = "logo", - src = "https://github.com/Appsilon/shiny.react/raw/master/man/figures/shiny-react.png" # nolint + class = "logo", + src = "https://github.com/Appsilon/shiny.react/raw/master/man/figures/shiny-react.png" ) ) ),