Fakultas Ilmu Komputer UI

Verified Commit f3af422f authored by Giovan Isa Musthofa's avatar Giovan Isa Musthofa
Browse files

[CHORES] Clean ESLint Errors

parent 2a404a42
Pipeline #39384 passed with stages
in 5 minutes and 18 seconds
......@@ -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."),
......
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" />
......
import { fireEvent, render, wait } from "@testing-library/react"
import { render } from "@testing-library/react"
import React from "react"
import EmailVerificationFailedPage from "./failed"
......
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" />
......
import { fireEvent, render, wait } from "@testing-library/react"
import { render } from "@testing-library/react"
import React from "react"
import EmailVerificationSuccessPage from "./success"
......
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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment