Fakultas Ilmu Komputer UI

Commit 582bd195 authored by Izzatul Muttaqin's avatar Izzatul Muttaqin
Browse files

Menghilangkan alert pada submit handle di ProfilePage dan EditProfile

parent 9571e3e3
Pipeline #25158 passed with stages
in 5 minutes and 52 seconds
......@@ -193,8 +193,9 @@ export default class ProfilePage extends React.Component {
handleSubmit = (e) => {
e.preventDefault();
if (!this.isFromGithubLinkValid()) {
alert(
'Pastikan link github yang anda tulis benar. (Berpola : https://github.com/<username>',
this.modalAlert.open(
'Pembaharuan profil gagal',
'Pastikan link github yang anda tulis benar.(Berpola : https://github.com/<username>'
);
} else {
var submitForm = {};
......
......@@ -197,8 +197,9 @@ export default class ProfilePage extends React.Component {
handleSubmit = (e) => {
e.preventDefault();
if (!this.isFromGithubLinkValid()) {
alert(
'Pastikan link github yang anda tulis benar. (Berpola : https://github.com/<username>',
this.modalAlert.open(
'Pembaharuan profil gagal',
'Pastikan link github yang anda tulis benar.(Berpola : https://github.com/<username>',
);
} else {
const submitForm = {};
......
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