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
f3af422f
Verified
Commit
f3af422f
authored
Apr 08, 2020
by
Giovan Isa Musthofa
Browse files
[CHORES] Clean ESLint Errors
parent
2a404a42
Pipeline
#39384
passed with stages
in 5 minutes and 18 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/modal-register.js
View file @
f3af422f
...
...
@@ -15,7 +15,7 @@ const ModalRegister = ({ show, handleClose }) => {
.
string
()
.
min
(
8
,
"
Password terlalu pendek - setidaknya harus 8 karakter.
"
)
.
matches
(
/^
(?=
.*
[
a-z
])(?=
.*
[
A-Z
])(?=
.*
[
0-9
])(?=
.*
[
!@#
\
$
%
\
^
&
\
*])(?=
.
{8,})
/
,
/^
(?=
.*
[
a-z
])(?=
.*
[
A-Z
])(?=
.*
[
0-9
])(?=
.*
[
!@#$%^&*
])(?=
.
{8,})
/
,
"
Password harus terdiri dari minimal 1 huruf kecil, 1 huruf kapital, 1 angka, dan 1 karakter spesial (!@#$%^&*).
"
)
.
required
(
"
Masukkan password.
"
),
...
...
@@ -26,7 +26,7 @@ const ModalRegister = ({ show, handleClose }) => {
first_name
:
yup
.
string
()
.
matches
(
/^
(?=
^.
{5,70}
$
)
^
[
A-Za-z
]
+
([
\
A-Za-z
]
+
)
*$/
,
/^
(?=
^.
{5,70}
$
)
^
[
A-Za-z
]
+
([
A-Za-z
]
+
)
*$/
,
"
Masukkan nama yang valid.
"
)
.
required
(
"
Masukkan nama.
"
),
...
...
frontend/src/pages/email-verification/failed.js
View file @
f3af422f
import
React
from
"
react
"
import
Card
from
"
../../components/card
"
import
Layout
from
"
../../components/layout
"
import
SEO
from
"
../../components/seo
"
import
useIsMounted
from
"
../../hooks/is-mounted
"
const
EmailVerificationFailedPage
=
()
=>
{
const
isMounted
=
useIsMounted
()
return
(
<
Layout
navbar
>
<
SEO
title
=
"
Verifikasi Email
"
/>
...
...
frontend/src/pages/email-verification/failed.test.js
View file @
f3af422f
import
{
fireEvent
,
render
,
wait
}
from
"
@testing-library/react
"
import
{
render
}
from
"
@testing-library/react
"
import
React
from
"
react
"
import
EmailVerificationFailedPage
from
"
./failed
"
...
...
frontend/src/pages/email-verification/success.js
View file @
f3af422f
import
React
from
"
react
"
import
Card
from
"
../../components/card
"
import
Layout
from
"
../../components/layout
"
import
SEO
from
"
../../components/seo
"
import
useIsMounted
from
"
../../hooks/is-mounted
"
const
EmailVerificationSuccessPage
=
()
=>
{
const
isMounted
=
useIsMounted
()
return
(
<
Layout
navbar
>
<
SEO
title
=
"
Verifikasi Email
"
/>
...
...
frontend/src/pages/email-verification/success.test.js
View file @
f3af422f
import
{
fireEvent
,
render
,
wait
}
from
"
@testing-library/react
"
import
{
render
}
from
"
@testing-library/react
"
import
React
from
"
react
"
import
EmailVerificationSuccessPage
from
"
./success
"
...
...
frontend/src/pages/profile.js
View file @
f3af422f
import
React
from
"
react
"
import
Layout
from
"
../components/layout
"
import
SEO
from
"
../components/seo
"
import
logo
from
"
../images/pmi.png
"
import
"
./profile.scss
"
...
...
@@ -17,7 +16,7 @@ const ProfilePage = () => (
<
div
className
=
"
card-body fluid
"
>
<
div
className
=
"
row justify-content-between
"
>
<
div
className
=
"
col-2
"
id
=
"
logo-id
"
>
<
img
src
=
{
logo
}
className
=
"
responsive
"
/>
<
img
alt
=
{
""
}
src
=
{
logo
}
className
=
"
responsive
"
/>
<
/div
>
<
div
className
=
"
col-6
"
id
=
"
id-card
"
>
<
p
className
=
"
card-text
"
>
Unit
Transfusi
Darah
<
/p
>
...
...
@@ -52,7 +51,7 @@ const ProfilePage = () => (
<
div
className
=
"
card-body fluid
"
>
<
div
className
=
"
row justify-content-between
"
>
<
div
className
=
"
col-2
"
id
=
"
logo-id
"
>
<
img
src
=
{
logo
}
className
=
"
responsive
"
/>
<
img
alt
=
{
""
}
src
=
{
logo
}
className
=
"
responsive
"
/>
<
/div
>
<
div
className
=
"
col-6
"
id
=
"
id-card
"
>
<
p
className
=
"
card-text
"
>
Unit
Transfusi
Darah
<
/p
>
...
...
@@ -85,7 +84,7 @@ const ProfilePage = () => (
<
div
className
=
"
card-body fluid
"
>
<
div
className
=
"
row justify-content-between
"
>
<
div
className
=
"
col-2
"
id
=
"
logo-id
"
>
<
img
src
=
{
logo
}
className
=
"
responsive
"
/>
<
img
alt
=
{
""
}
src
=
{
logo
}
className
=
"
responsive
"
/>
<
/div
>
<
div
className
=
"
col-6
"
id
=
"
id-card
"
>
<
p
className
=
"
card-text
"
>
Unit
Transfusi
Darah
<
/p
>
...
...
@@ -117,7 +116,7 @@ const ProfilePage = () => (
<
div
className
=
"
card-body fluid
"
>
<
div
className
=
"
row justify-content-between
"
>
<
div
className
=
"
col-2
"
id
=
"
logo-id
"
>
<
img
src
=
{
logo
}
className
=
"
responsive
"
/>
<
img
alt
=
{
""
}
src
=
{
logo
}
className
=
"
responsive
"
/>
<
/div
>
<
div
className
=
"
col-6
"
id
=
"
id-card
"
>
<
p
className
=
"
card-text
"
>
Unit
Transfusi
Darah
<
/p
>
...
...
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