Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
Diskominfo-D'Blood
Mantan Aab-D Blood
Commits
2c4b33ed
Commit
2c4b33ed
authored
Apr 07, 2020
by
Nabila Febri Viola
Browse files
[CHORES] Change base url api
parent
353642ac
Pipeline
#38657
failed with stages
in 3 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/modal-register.js
View file @
2c4b33ed
...
...
@@ -2,6 +2,7 @@ import React from "react"
import
{
Form
}
from
"
react-bootstrap
"
import
{
useForm
}
from
"
react-hook-form
"
import
*
as
yup
from
"
yup
"
import
{
BASE_API_URL
}
from
"
./config
"
import
ModalRegisterAccount
from
"
./register-account
"
...
...
@@ -79,7 +80,7 @@ const ModalRegister = ({ show, handleClose }) => {
"
}
"
console
.
log
(
data
)
await
fetch
(
"
https://dblood-staging.netlify.com
/auth/register-full/
"
,
{
await
fetch
(
`
${
BASE_API_URL
}
/auth/register-full/
`
,
{
method
:
"
POST
"
,
headers
:
{
"
Content-Type
"
:
"
application/json
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment