Skip to content

Commit

Permalink
feat: update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dancixx committed Feb 6, 2025
1 parent b58963f commit 47670b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions migrations/20250207_000054_update_show_cta.surql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE post SET show_cta = false;
5 changes: 2 additions & 3 deletions src/pages/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use leptos_icons::{Icon, IconProps};
use leptos_meta::{Title, TitleProps};
use leptos_router::components::{AProps, A};

use crate::components::loader;
use crate::ssr::api::{select_posts, select_tags};
use crate::ssr::api::select_posts;

pub fn component() -> impl IntoView {
let selected_tags = RwSignal::new(Vec::<String>::new());
Expand All @@ -24,7 +23,7 @@ pub fn component() -> impl IntoView {
Suspense(
SuspenseProps::builder().fallback(|| ()).children(TypedChildren::to_children(move || {
div()
.class("gap-4 columns-1 sm:columns-2")
.class("flex flex-col gap-8")
.child(For(ForProps::builder()
.each(move || posts.get().and_then(Result::ok).unwrap_or_default())
.key(|post| post.id.id.to_string())
Expand Down

0 comments on commit 47670b3

Please sign in to comment.