All checks were successful
actionlint check / actionlint check (pull_request) Successful in 6s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 3s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 7s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 7s
GitLeaks check / GitLeaks check (pull_request) Successful in 10s
hadolint check / hadolint check (pull_request) Successful in 11s
htmlhint check / htmlhint check (pull_request) Successful in 44s
markdownlint check / markdownlint check (pull_request) Successful in 40s
Prettier check / Prettier check (pull_request) Successful in 36s
checkov check / checkov check (pull_request) Successful in 1m22s
ShellCheck check / ShellCheck check (pull_request) Successful in 29s
Stylelint check / Stylelint check (pull_request) Successful in 31s
yamllint check / yamllint check (pull_request) Successful in 29s
Rust check / Rust check (pull_request) Successful in 11m42s
19 lines
473 B
Rust
19 lines
473 B
Rust
use crate::components::task_list::TaskList;
|
|
use crate::hooks::use_tasks_with_subtasks_in_category;
|
|
use crate::models::category::Category;
|
|
use dioxus::core_macro::rsx;
|
|
use dioxus::dioxus_core::Element;
|
|
use dioxus::prelude::*;
|
|
|
|
#[component]
|
|
pub(crate) fn CategoryPage(category: Category) -> Element {
|
|
let tasks = use_tasks_with_subtasks_in_category(category)?;
|
|
|
|
rsx! {
|
|
TaskList {
|
|
tasks: tasks.clone(),
|
|
class: "pb-36"
|
|
}
|
|
}
|
|
}
|