Skip to content

Commit

Permalink
fixes for updated dioxus
Browse files Browse the repository at this point in the history
  • Loading branch information
ddboline committed Dec 9, 2023
1 parent 6058eb5 commit 42ca637
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion garmin_http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"

[dependencies]
anyhow = "1.0"
authorized_users = { git = "https://github.com/ddboline/auth_server_rust.git", tag="0.11.3"}
authorized_users = { git = "https://github.com/ddboline/auth_server_rust.git", tag="0.11.4"}
base64 = "0.21"
cookie = {version="0.18", features=["percent-encode"]}
derive_more = "0.99"
Expand Down
14 changes: 7 additions & 7 deletions garmin_http/src/garmin_elements.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use dioxus::prelude::{
dioxus_elements, inline_props, rsx, Element, GlobalAttributes, LazyNodes, Props, Scope,
VirtualDom,
component, dioxus_elements, rsx, Element, GlobalAttributes, IntoDynNode, LazyNodes, Props,
Scope, VirtualDom,
};
use itertools::Itertools;
use rweb_helper::DateType;
Expand Down Expand Up @@ -316,7 +316,7 @@ pub async fn index_new_body(
}
}

#[inline_props]
#[component(no_case_check)]
fn index_element(
cx: Scope,
title: StackString,
Expand Down Expand Up @@ -1889,7 +1889,7 @@ pub fn create_fitbit_table(heartrate_values: Vec<FitbitHeartRate>) -> String {
dioxus_ssr::render(&app)
}

#[inline_props]
#[component(no_case_check)]
fn fitbit_table(cx: Scope, heartrate_values: Vec<FitbitHeartRate>) -> Element {
cx.render(rsx! {
table {
Expand Down Expand Up @@ -1921,7 +1921,7 @@ pub fn table_body(body: StackString) -> String {
dioxus_ssr::render(&app)
}

#[inline_props]
#[component(no_case_check)]
fn table_element(cx: Scope, body: StackString) -> Element {
cx.render(rsx! {
textarea {
Expand All @@ -1938,7 +1938,7 @@ pub fn strava_body(athlete: StravaAthlete) -> String {
dioxus_ssr::render(&app)
}

#[inline_props]
#[component(no_case_check)]
fn strava_element(cx: Scope, athlete: StravaAthlete) -> Element {
let id = athlete.id;
let username = &athlete.username;
Expand Down Expand Up @@ -2086,7 +2086,7 @@ pub fn fitbit_body(profile: FitbitUserProfile) -> String {
dioxus_ssr::render(&app)
}

#[inline_props]
#[component(no_case_check)]
fn fitbit_element(cx: Scope, profile: FitbitUserProfile) -> Element {
let average_daily_steps = profile.average_daily_steps;
let country = &profile.country;
Expand Down

0 comments on commit 42ca637

Please sign in to comment.