Skip to content

Feat add toaster provider#3

Open
Cleber-Severo wants to merge 5 commits intomainfrom
feat-add-toaster-provider
Open

Feat add toaster provider#3
Cleber-Severo wants to merge 5 commits intomainfrom
feat-add-toaster-provider

Conversation

@Cleber-Severo
Copy link
Copy Markdown
Contributor

@Cleber-Severo Cleber-Severo commented Dec 15, 2024

Adicionando Toaster provider para a aplicação

Foi adicionado um provider com o toaster do Ant Design que já está sendo implementado para a funcionalidade do login.

  • ele poderá ser disparado em qualquer parte da aplicação e é totalmente configurável, como em tipo, conteúdo e direção.

Loading

image

Succcess

image

- There will be a toaster for loading and success in the login proccess;
- The auth error is already being handled by the form itself
Copy link
Copy Markdown
Member

@FelipeNFL FelipeNFL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ainda preciso testar antes de mergear. Mas parece ok! Obrigado e parabéns!


const [loginError, setLoginError] = useState(false)

const { messageApi } = useContext(ToasterContext)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Cleber-Severo , consegue fazer um hook só para o Toaster? Tipo um useToast. Assim não precisaremos chamar o useContext o tempo todo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants