Skip to content

Commit 1092b0e

Browse files
committed
Replace rx.redirect with rx.link
1 parent 545fbc9 commit 1092b0e

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

alphaspheredotai_github_io/component.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,16 @@ def contact_item(
7575
rx.avatar(src=avatar),
7676
rx.heading(name, size="4", weight="bold"),
7777
rx.text(username, color_scheme="gray"),
78-
rx.button(
79-
(rx.text("link"), rx.icon("link", size=16, color="gray")),
80-
variant="soft",
81-
on_click=rx.redirect(url, is_external=True),
78+
rx.link(
79+
rx.button(
80+
(
81+
rx.text("link"),
82+
rx.icon("link", size=16, color="gray"),
83+
),
84+
variant="soft",
85+
),
86+
href=url,
87+
is_external=True,
8288
),
8389
),
8490
direction="column",

0 commit comments

Comments
 (0)