Skip to content

Commit d943d0e

Browse files
committed
refactor: class! => C!
1 parent c4d3c03 commit d943d0e

File tree

6 files changed

+306
-305
lines changed

6 files changed

+306
-305
lines changed

crate/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
177177

178178
pub fn view(model: &Model) -> impl IntoNodes<Msg> {
179179
div![
180-
class![
181-
C.fade_in => !model.in_prerendering,
180+
C![
181+
IF!(not(model.in_prerendering) => C.fade_in),
182182
C.min_h_screen,
183183
C.flex,
184184
C.flex_col,
@@ -197,6 +197,7 @@ pub fn image_src(image: &str) -> String {
197197
format!("{}/{}", IMAGES_PATH, image)
198198
}
199199

200+
200201
pub fn asset_path(asset: &str) -> String {
201202
format!("{}/{}", STATIC_PATH, asset)
202203
}

0 commit comments

Comments
 (0)