Skip to content

Commit

Permalink
disabled share link and added disablity feat to the buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-medicala-yral committed Dec 11, 2024
1 parent 8e8bbc2 commit f6e35a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ssr/src/page/icpump/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ pub fn ActionButtonWithHandler(
) -> impl IntoView {
view! {
<button
on:click=move |_| on_click()
class=format!("flex flex-col gap-1 justify-center items-center text-xs transition-colors {} text-[#A0A1A6]", if !disabled{"group-hover:text-white "}else{""})
disabled
on:click=move |_| {if !disabled{on_click()}}
class=format!("flex flex-col gap-1 justify-center items-center text-xs transition-colors {} text-[#A0A1A6]", if !disabled{"group-hover:text-white "}else{"group-hover:cursor-default"})
>
<div class="w-[1.875rem] h-[1.875rem]">{children()}</div>

Expand Down

0 comments on commit f6e35a3

Please sign in to comment.