Skip to content

Commit 4f2ee18

Browse files
committed
Env fixes, other UI changes
1 parent f6f905a commit 4f2ee18

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

frontend/app/web/src/modules/pages/Home/index.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@ const Home = ({ classes }) => (
2727
<Section>
2828
<Typography paragraph>Simple note taking application!</Typography>
2929

30-
<Typography>
31-
<Link to={routes.userSignup.path}>
32-
<Button variant="contained" color="primary">Signup</Button>
33-
</Link>
34-
35-
<Link to={routes.userLogin.path}>
36-
<Button variant="outlined" color="primary" style={{ marginLeft: 10 }}>Login</Button>
37-
</Link>
38-
</Typography>
30+
<Link to={routes.userSignup.path}>
31+
<Button variant="contained" color="primary">Signup</Button>
32+
</Link>
33+
34+
<Link to={routes.userLogin.path}>
35+
<Button variant="outlined" color="primary" style={{ marginLeft: 10 }}>Login</Button>
36+
</Link>
3937
</Section>
4038

4139
{/* Auth Check */}

frontend/app/web/src/modules/user/Signup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Signup extends PureComponent {
3434
}
3535
}
3636

37-
login = async event => {
37+
signup = async event => {
3838
event.preventDefault()
3939

4040
const { signup, messageShow, history } = this.props
@@ -74,7 +74,7 @@ class Signup extends PureComponent {
7474
Don't have an account? Please signup:
7575
</Typography>
7676

77-
<form onSubmit={this.login}>
77+
<form onSubmit={this.signup}>
7878
{/* Input - name */}
7979
<Grid item xs={12}>
8080
<TextField

frontend/app/web/src/modules/user/api/actions/query.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export function login({ email, password }, isLoading = true) {
3030
let message = ''
3131

3232
if(data.success) {
33-
console.log(data.data.token)
34-
console.log(data.data.user)
3533
dispatch(setUser(data.data.token, data.data.user))
3634

3735
setUserLocally(data.data.token, data.data.user)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Configurations
22

33
// URL
4-
export const APP_URL = process.env.REACT_APP_APP_URL
4+
export const LANDING_URL = process.env.REACT_APP_LANDING_URL
5+
export const WEB_URL = process.env.REACT_APP_WEB_URL
56
export const API_URL = process.env.REACT_APP_API_URL

0 commit comments

Comments
 (0)