Skip to content

Commit f30aea7

Browse files
committed
changed api path
1 parent f19330c commit f30aea7

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# List of env variables
22

33
#Replace your django-crm API URL below
4-
REACT_APP_BASE_URL= "https://8000-wispy-waterfall-04823641.eu-ws3.runcode.io/api/"
4+
REACT_APP_BASE_URL= "https://8000-dry-haze-25280477.eu-ws3.runcode.io/api/"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ yarn-debug.log*
2323
yarn-error.log*
2424
.env
2525
package-lock.json
26+
yarn.lock

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ CRM UI developed in react for django-crm
44

55
## Runcode
66

7-
[![RunCode](https://runcode-app-public.s3.amazonaws.com/images/dark_btn.png)](https://runcode.io)
7+
Runcode is online developer workspace. It is cloud based simple, secure and ready to code workspaces, assuring high performance & fully configurable coding environment. With runcode you can run react-crm(UI) with one-click.
8+
9+
- Before running react-crm(UI), You need to have django-crm API. To create Backend API go to [Django CRM](https://github.com/MicroPyramid/Django-CRM "Django CRM") project to cretae new workpsace with runcode.
10+
11+
- After running Backend API, Open below link to create react-crm workspace on [RunCode](https://runcode.io/ "RunCode"). It will cretae react-crm UI.
12+
13+
[![RunCode](https://runcode-app-public.s3.amazonaws.com/images/dark_btn.png)](https://runcode.io)
814

915
### Configuration
10-
need to add REACT_APP_BASE_URL in your env to point django-crm api
16+
Add REACT_APP_BASE_URL in your '.env' file to point django-crm api.
1117

1218
[![RunCode](https://runcode-app-public.s3.amazonaws.com/images/dark_btn.png)](https://runcode.io)
1319

src/containers/auth/LogInForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export const LogInForm = () => {
128128
>
129129
{
130130
showPassword
131-
? <VisibilityOff color='primary' />
132-
: <Visibility color='primary' />
131+
? <Visibility color='primary' />
132+
: <VisibilityOff color='primary' />
133133
}
134134
</IconButton>
135135
</InputAdornment>

src/containers/auth/RegistrationForm.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ export const RegistrationForm = () => {
8080
size='small'
8181
error={errors.first_name}
8282
helperText={
83-
error
84-
? `${errors.first_name instanceof Array
85-
? errors.first_name[0]
86-
: ''
87-
}`
88-
: 'please enter your name'
83+
error
84+
? `${errors.first_name instanceof Array
85+
? errors.first_name[0]
86+
: ''
87+
}`
88+
: 'please enter your name'
8989
}
9090
type='text'
9191
name='first_name'
@@ -111,10 +111,10 @@ export const RegistrationForm = () => {
111111
size='small'
112112
error={errors.org_name}
113113
helperText={
114-
error
115-
? `${errors.org_name instanceof Array ? errors.org_name[0] : ''
116-
}`
117-
: 'please enter your name'
114+
error
115+
? `${errors.org_name instanceof Array ? errors.org_name[0] : ''
116+
}`
117+
: 'please enter your name'
118118
}
119119
type={showPassword ? 'text' : 'password'}
120120
name='org_name'
@@ -171,7 +171,7 @@ export const RegistrationForm = () => {
171171
onClick={() => setShowPassword(!showPassword)}
172172
edge='end'
173173
>
174-
{showPassword ? <VisibilityOff /> : <Visibility />}
174+
{showPassword ? <Visibility /> : <VisibilityOff />}
175175
</IconButton>
176176
</InputAdornment>
177177
)
@@ -181,7 +181,7 @@ export const RegistrationForm = () => {
181181
helperText={
182182
error
183183
? `${errors.password instanceof Array ? errors.password[0] : ''
184-
}`
184+
}`
185185
: 'please enter your password'
186186
}
187187
type={showPassword ? 'text' : 'password'}

0 commit comments

Comments
 (0)