Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
267d4bef
Commit
267d4bef
authored
Aug 11, 2020
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add create/update perusahaan
parent
61836872
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
237 additions
and
1 deletion
+237
-1
CreatePerusahaan.js
src/container/MasterData/Perusahaan/CreatePerusahaan.js
+222
-0
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+15
-1
No files found.
src/container/MasterData/Perusahaan/CreatePerusahaan.js
0 → 100644
View file @
267d4bef
This diff is collapsed.
Click to expand it.
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
267d4bef
...
@@ -6,6 +6,7 @@ import Images from '../../../assets/Images';
...
@@ -6,6 +6,7 @@ import Images from '../../../assets/Images';
import
MUIDataTable
from
"mui-datatables"
;
import
MUIDataTable
from
"mui-datatables"
;
import
{
render
}
from
'@testing-library/react'
;
import
{
render
}
from
'@testing-library/react'
;
import
{
TextField
,
InputBase
}
from
"@material-ui/core"
;
import
{
TextField
,
InputBase
}
from
"@material-ui/core"
;
import
CreatePerusahaan
from
"../Perusahaan/CreatePerusahaan"
;
var
ct
=
require
(
"../../../library/CustomTable"
);
var
ct
=
require
(
"../../../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
...
@@ -70,7 +71,7 @@ export default class Perusahaan extends Component {
...
@@ -70,7 +71,7 @@ export default class Perusahaan extends Component {
}
}
}
}
},
{
},
{
name
:
"
Nama Perusahaan
"
,
name
:
"
Parent Company
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
...
@@ -163,6 +164,19 @@ export default class Perusahaan extends Component {
...
@@ -163,6 +164,19 @@ export default class Perusahaan extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
{
this
.
state
.
visibleCreate
&&
(
<
CreatePerusahaan
onClickClose
=
{()
=>
this
.
setState
({
visibleCreate
:
false
})}
/
>
)}
{
this
.
state
.
visibleEdit
&&
(
<
CreatePerusahaan
type
=
{
"edit"
}
onClickClose
=
{()
=>
this
.
setState
({
visibleEdit
:
false
})}
data
=
{
this
.
state
.
data
}
/
>
)}
<
/div
>
<
/div
>
);
);
}
}
...
...
Write
Preview
Markdown
is supported
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