Skip to content

Commit

Permalink
add updatebio link
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Jan 17, 2025
1 parent 4c6b55a commit 47ce6cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/gno.land/r/gnoland/users/v1/render.gno
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ func renderUserPage(path string) string {
out += md.H2("Bio")
out += profile.GetStringField(data.Addr(), "Bio", "No bio defined.")
out += "\n\n"
out += ufmt.Sprintf("[Update bio](%s)", txlink.Realm("gno.land/r/demo/profile").Call("SetStringField", "field", "Bio"))
out += "\n\n"

return out
}
Expand Down

0 comments on commit 47ce6cf

Please sign in to comment.