Render the registration error message.
()
| 5 | from .state import MyRegisterState |
| 6 | |
| 7 | def register_error() -> rx.Component: |
| 8 | """Render the registration error message.""" |
| 9 | return rx.cond( |
| 10 | reflex_local_auth.RegistrationState.error_message != "", |
| 11 | rx.callout( |
| 12 | reflex_local_auth.RegistrationState.error_message, |
| 13 | icon="triangle_alert", |
| 14 | color_scheme="red", |
| 15 | role="alert", |
| 16 | width="100%", |
| 17 | ), |
| 18 | ) |
| 19 | |
| 20 | |
| 21 | def my_register_form() -> rx.Component: |