Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Coopera RS
front-end
Merge requests
!4
An error occurred while fetching the assigned milestone of the selected merge_request.
Merged
Created
3 weeks ago
by
Airton Luiz Canale Filho
@airton.canale
Developer
Options
Criar componente de botão
Overview
0
Commits
7
Changes
3
Descrição
Criei um componente de botão, que recebe 3 props, text, onClick e styles dinamicamente
Descrição da solução
Optei por não dar estilo ao CustomButton uma vez que temos varios botões em diferentes lugares, por isso a prop "styles" como parametro.
Testes e evidências
Exemplo de como ficou em tela sem passar nem um estilo por parametro previamente:
Observações
Adicionei o Material UI que não estava no package.json e as dependencias necessarias para ele rodar
Closes US-XXXXX
Edited
2 weeks ago
by
Airton Luiz Canale Filho
0
0
Oldest first
Newest first
Oldest first
You're only seeing
other activity
in the feed. To add a comment, switch to one of the following options.
Show all activity
Show comments only
Please
register
or
sign in
to reply
Menu
Projects
Groups
Snippets
Help