diff --git a/nba/nba/views/table.py b/nba/nba/views/table.py index 285379f8..acd87c7c 100644 --- a/nba/nba/views/table.py +++ b/nba/nba/views/table.py @@ -17,6 +17,16 @@ class State(rx.State): age: tuple[int, int] = (18, 50) salary: tuple[int, int] = (0, 25000000) + @rx.event + def set_position(self, position: str) -> None: + """Set the position filter.""" + self.position = position + + @rx.event + def set_college(self, college: str) -> None: + """Set the college filter.""" + self.college = college + @rx.event def set_age(self, age: list[int | float]) -> None: """Set the age filter.""" diff --git a/nba/rxconfig.py b/nba/rxconfig.py index 0370b4b2..d6a57b39 100644 --- a/nba/rxconfig.py +++ b/nba/rxconfig.py @@ -1,6 +1,3 @@ import reflex as rx -config = rx.Config( - app_name="nba", - tailwind=None, -) +config = rx.Config(app_name="nba")