Skip to content

Commit

Permalink
Fix navigation button in UI for new Mesop version.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 713283716
Change-Id: I4d1df4c6ac0a8ad11e08685d5a814233beebfb92
  • Loading branch information
sam-bailey authored and copybara-github committed Jan 8, 2025
1 parent 64fa1b2 commit 4a33ec7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ To cite this repository:
author = {Sam Bailey, Piet Snel, Christiane Ahlheim, Sumedha Menon, Hector Parra, Jaime Martínez, Letizia Bertolaja},
title = {Copycat: AI generated Google Search ad copy that matches your brand style},
url = {https://github.com/google-marketing-solutions/copycat},
version = {0.0.4},
version = {0.0.5},
year = {2024},
}
```
2 changes: 1 addition & 1 deletion py/copycat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
ALL_SAFETY_SETTINGS_ONLY_HIGH = copycat.ALL_SAFETY_SETTINGS_ONLY_HIGH


__version__ = "0.0.4"
__version__ = "0.0.5"
4 changes: 1 addition & 3 deletions py/copycat/ui/sub_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def add_page(
nav_icon=nav_icon,
)

@me.content_component
def navigation_button(self, url: str):
"""Renders the navigation button for a sub page.
Expand Down Expand Up @@ -90,8 +89,7 @@ def render(self, **kwargs):
):
with components.header_section():
for i, url in enumerate(self.keys()):
with self.navigation_button(url):
pass
self.navigation_button(url)
if i < (len(self.keys()) - 1):
me.icon(
"arrow_forward_ios",
Expand Down

0 comments on commit 4a33ec7

Please sign in to comment.