chore(dioxus): Upgraded to dioxus 0.6.0
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_sdk::{i18n::use_i18, translate};
|
||||
use dioxus_i18n::t;
|
||||
|
||||
#[derive(PartialEq, Props, Clone)]
|
||||
pub struct PProps {
|
||||
@@ -121,8 +121,6 @@ fn Picture(prop: PictureProp) -> Element {
|
||||
}
|
||||
|
||||
pub fn UnderConstruction() -> Element {
|
||||
let i18 = use_i18();
|
||||
|
||||
rsx! {
|
||||
div {
|
||||
class:"rounded justify-between w-full p-4 border-b border-gray-200 bg-gray-50 dark:bg-gray-700 dark:border-gray-600 my-8",
|
||||
@@ -130,7 +128,7 @@ pub fn UnderConstruction() -> Element {
|
||||
class:"items-center mx-auto",
|
||||
p {
|
||||
class:"items-center text-sm font-normal text-gray-500 dark:text-gray-400",
|
||||
span { { translate!(i18, "components.under_construction") } }
|
||||
span { { t!("component_under_construction") } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user