Skip to content

Commit 5716537

Browse files
committed
🎨 Make ButtonCollab default as button
1 parent a63f631 commit 5716537

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎src/components/ButtonCollab/styles.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { Link } from "react-router-dom";
33

44
import { _h6 } from "../../styles/tools/Typography";
55

6-
export const Button = styled(Link)`
6+
export const Button = styled(Link).attrs({ as: "button" })`
77
${_h6};
8+
cursor: pointer;
89
display: flex;
910
align-items: center;
1011
justify-content: center;

‎src/containers/FormLogin/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function FormLogin() {
4545
msgError={errors.password}
4646
/>
4747

48-
<ButtonCollab content="Entrar" as="button" />
48+
<ButtonCollab content="Entrar" />
4949
<ActionCollab content="Esqueci a senha" to="/auth/forgot" />
5050
<ActionCollab content="Criar conta" to="/auth/signup" />
5151
</FormAuth>

‎src/containers/FormSignup/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function FormLogin() {
6666
msgError={errors.password}
6767
/>
6868

69-
<ButtonCollab content="Enviar" as="button" />
69+
<ButtonCollab content="Enviar" />
7070
<ActionCollab content="Já tenho cadastro" to="/auth/login" />
7171
</FormAuth>
7272
);

0 commit comments

Comments
 (0)