Skip to content

Commit

Permalink
Se deshabilita el botón flotante
Browse files Browse the repository at this point in the history
  • Loading branch information
mouredev committed Nov 4, 2024
1 parent 55b0a58 commit aca46ce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
20 changes: 10 additions & 10 deletions link_bio/link_bio/components/ant_components.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import reflex as rx
from link_bio.styles.colors import Color
# import reflex as rx
# from link_bio.styles.colors import Color


class FloatButton(rx.Component):
library = "antd"
tag = "FloatButton"
icon: rx.Var[rx.el.Img]
href: rx.Var[str]
target = "_blank"
badge = {"dot": True, "color": Color.PRIMARY.value}
# class FloatButton(rx.Component):
# library = "antd"
# tag = "FloatButton"
# icon: rx.Var[rx.el.Img]
# href: rx.Var[str]
# target = "_blank"
# badge = {"dot": True, "color": Color.PRIMARY.value}


float_button = FloatButton.create
# float_button = FloatButton.create
11 changes: 6 additions & 5 deletions link_bio/link_bio/components/footer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import link_bio.constants as const
from link_bio.styles.styles import Size, Spacing
from link_bio.styles.colors import Color, TextColor
from link_bio.components.ant_components import float_button
# from link_bio.components.ant_components import float_button


def footer() -> rx.Component:
Expand Down Expand Up @@ -46,10 +46,11 @@ def footer() -> rx.Component:
href=const.REPO_URL,
is_external=True
),
float_button(
icon=rx.image(src="/icons/donate.svg"),
href=const.COFFEE_URL
),
# Se deja de utilizar hasta que se actualice la versión de next.js
# float_button(
# icon=rx.image(src="/icons/donate.svg"),
# href=const.COFFEE_URL
# ),
align="center",
margin_bottom=Size.BIG.value,
padding_bottom=Size.VERY_BIG.value,
Expand Down

0 comments on commit aca46ce

Please sign in to comment.