Fakultas Ilmu Komputer UI

Commit cb158678 authored by Izzatul Muttaqin's avatar Izzatul Muttaqin
Browse files

Merge branch '1606837915-147' into 'master'

Menghilangkan alert pada submit handle di ProfilePage dan EditProfile

See merge request !163
parents 2fa8314f 582bd195
Pipeline #25162 passed with stages
in 12 minutes and 9 seconds
......@@ -196,8 +196,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 = {};
......
......@@ -200,8 +200,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