Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
dd621b42
Commit
dd621b42
authored
Nov 14, 2019
by
ALIF AHSANIL SATRIA
Browse files
refactor dalam bentuk memperbaiki code smell
parent
4b1db830
Pipeline
#24942
passed with stages
in 7 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
assets/js/ApplicantPage.jsx
View file @
dd621b42
...
...
@@ -32,7 +32,6 @@ export default class ApplicantPage extends React.Component {
Server
.
get
(
`/companies/
${
this
.
props
.
user
.
data
.
company
.
id
}
/vacancies/`
,
false
).
then
(
(
data
)
=>
{
const
results
=
data
.
results
;
const
names
=
[
'
Semua Lowongan
'
];
const
urls
=
[
{
key
:
0
,
...
...
assets/js/index.jsx
View file @
dd621b42
...
...
@@ -87,18 +87,12 @@ export default class App extends React.Component {
handleHome
=
(
nextState
,
replace
,
cb
)
=>
{
if
(
Server
.
isLoggedIn
())
{
if
(
App
.
getRole
()
===
'
student
'
)
{
replace
({
pathname
:
'
/lowongan
'
});
cb
();
}
else
if
(
App
.
getRole
()
===
'
company
'
)
{
if
(
App
.
getRole
()
===
'
student
'
||
App
.
getRole
()
===
'
company
'
||
App
.
getRole
()
===
'
supervisor
'
)
{
replace
({
pathname
:
'
/lowongan
'
});
cb
();
}
else
if
(
App
.
getRole
()
===
'
admin
'
)
{
replace
({
pathname
:
'
/perusahaan
'
});
cb
();
}
else
if
(
App
.
getRole
()
===
'
supervisor
'
)
{
replace
({
pathname
:
'
/lowongan
'
});
cb
();
}
}
replace
({
pathname
:
'
/login
'
});
cb
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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