2024-05-12 09:35:13 -07:00
|
|
|
package users
|
|
|
|
|
2024-07-11 08:08:58 -07:00
|
|
|
import "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma"
|
|
|
|
|
2024-05-12 09:35:13 -07:00
|
|
|
// This is returned after the user creates an account.
|
|
|
|
// It just returns a partial view because it will overlap with the existing template.
|
|
|
|
templ AfterSignUp(message string, success bool) {
|
|
|
|
if success {
|
2024-07-11 08:08:58 -07:00
|
|
|
@bulma.Notification(message, bulma.ColorSuccess)
|
2024-05-12 09:35:13 -07:00
|
|
|
} else {
|
2024-07-11 08:08:58 -07:00
|
|
|
@bulma.Notification(message, bulma.ColorError)
|
2024-05-12 09:35:13 -07:00
|
|
|
}
|
|
|
|
}
|